commit | 75bd481ac25a06e4b9e21b3afdc07af0080faa00 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Jun 03 17:17:52 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Jun 03 17:17:52 2020 +0000 |
tree | 8c40d4cea0df5eb945fa98faf4e4b95e309b2408 | |
parent | 65052a45f6b33e1da4c8aae6b829b2f310a9495c [diff] | |
parent | ba5b18fda4f2d57a94f94bebccf6c6d153faed2c [diff] |
Fix update_engine libchrome log tag. am: 550ade4e44 am: ba5b18fda4 Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1322876 Change-Id: I7250e8d9f1c86578fb8c79763e4caecce1aea929
diff --git a/logging_android.cc b/logging_android.cc index 88b068b..0219075 100644 --- a/logging_android.cc +++ b/logging_android.cc
@@ -241,8 +241,8 @@ 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; }