logd: trailing spaces in log statistics

Bug: 30118730
Change-Id: I8cccbc1da2cf8168ec9cf12f07df4cafef076558
This commit is contained in:
Mark Salyzyn 2016-07-15 07:40:33 -07:00
parent a17427cb1e
commit 0adcc3e3e8
1 changed files with 1 additions and 1 deletions

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;