commit | 0adcc3e3e8bd6d7c57994f828ee22c104b4eb043 | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Fri Jul 15 07:40:33 2016 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Fri Jul 15 11:00:44 2016 -0700 |
tree | b7758303e0985153da3cda6b365560a1aef10d09 | |
parent | a17427cb1e9caaeb4dde7184b05dfa4b3b1f7172 [diff] |
logd: trailing spaces in log statistics Bug: 30118730 Change-Id: I8cccbc1da2cf8168ec9cf12f07df4cafef076558
diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp index 02a4a75..a2d2aa5 100644 --- a/logd/LogStatistics.cpp +++ b/logd/LogStatistics.cpp
@@ -284,7 +284,7 @@ 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;