commit | 35f7799f16fb764c2e7ea601d39ae42eb7f75abf | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Fri Jul 15 19:04:49 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Jul 15 19:04:49 2016 +0000 |
tree | dc4028b215ea03ba1e2e84f088e46d2f682a3f66 | |
parent | 0d9ce373824fa488cfcbfc1cfade5de4a71201ea [diff] | |
parent | d59d16a49d5621e89dcbf1fc98bb2be2180b0eb9 [diff] |
Merge \"logd: trailing spaces in log statistics\" am: d59d16a49d Change-Id: I3f9432af451b13e5641d8ab6a8c275516d636439
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;