commit | d59d16a49d5621e89dcbf1fc98bb2be2180b0eb9 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Jul 15 18:55:58 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Jul 15 18:55:58 2016 +0000 |
tree | 023998f28cc43b1cff0e1cff57d2aba19e1990e7 | |
parent | 73cc6edf0e52dc349e1aaa41bfae7ff67c67027f [diff] | |
parent | 0adcc3e3e8bd6d7c57994f828ee22c104b4eb043 [diff] |
Merge "logd: trailing spaces in log statistics"
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;