summaryrefslogtreecommitdiff
path: root/logging_android.cc
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-06-03 17:06:06 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-03 17:06:06 +0000
commitba5b18fda4f2d57a94f94bebccf6c6d153faed2c (patch)
treee1d52591e29858b1faf89bd7896b074a4793ecc4 /logging_android.cc
parent3635e6485e640cc26bd87895498045fe8ded271c (diff)
parent550ade4e44a72708354597307122a3f46e43a7d6 (diff)
Fix update_engine libchrome log tag. am: 550ade4e44
Original change: https://android-review.googlesource.com/c/platform/system/update_engine/+/1322876 Change-Id: Id7e52d2cba3a9681e17db9df79370b0af7ba82fc
Diffstat (limited to 'logging_android.cc')
-rw-r--r--logging_android.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/logging_android.cc b/logging_android.cc
index 88b068bc6..0219075ca 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;
}