Snap for 6601617 from 84875e0c9bfc164500b90697a31472b53bef2cef to rvc-d1-release
Change-Id: Id40e771afe54980b34eb55b3cdb05c79d03555ff
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;
}