Merge \"logd: trailing spaces in log statistics\"

am: d59d16a49d

Change-Id: I3f9432af451b13e5641d8ab6a8c275516d636439
This commit is contained in:
Mark Salyzyn 2016-07-15 19:04:49 +00:00 committed by android-build-merger
commit 35f7799f16

View file

@ -284,7 +284,7 @@ std::string UidEntry::format(const LogStatistics &stat, log_id_t id) const {
if ((spaces <= 0) && pruned.length()) {
spaces = 1;
}
if (spaces > 0) {
if ((spaces > 0) && (pruned.length() != 0)) {
change += android::base::StringPrintf("%*s", (int)spaces, "");
}
pruned = change + pruned;