diff options
author | Yifan Hong <elsk@google.com> | 2020-06-02 15:08:37 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2020-06-17 10:44:27 -0700 |
commit | c3fd86a8be7487278442edac61d2dd509010490c (patch) | |
tree | 562e667d1e87eabf01fb8afcea607f968f105017 | |
parent | ddf27738af372b335c85ee5cf8a7d9fcab4cd7cf (diff) |
Fix update_engine libchrome log tag.
Test: boot and inspect logcat
Fixes: 158030597
Bug: 158817816
Change-Id: I931af4faf6219ce42ff94080ea834721726dc0ba
(cherry picked from commit 550ade4e44a72708354597307122a3f46e43a7d6)
-rw-r--r-- | logging_android.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logging_android.cc b/logging_android.cc index 88b068bc..0219075c 100644 --- a/logging_android.cc +++ b/logging_android.cc @@ -241,8 +241,8 @@ bool RedirectToLiblog(int severity, ignore_result(android::base::ConsumeSuffix(&sv, "\n")); std::string str(sv.data(), sv.size()); // This will eventually be redirected to CombinedLogger. - // |tag| is ignored by CombinedLogger, so just leave it empty. - __android_log_write(priority, "" /* tag */, str.c_str()); + // Use nullptr as tag so that liblog infers log tag from getprogname(). + __android_log_write(priority, nullptr /* tag */, str.c_str()); return true; } |