commit | b3e4772f3ef4f8ea934c5871192f70ae3f1e1175 | [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 | 869e85dca9c72d3c46dd137267333b6405f1dbba [diff] | |
parent | 48a7e081506b92ec3e30da1dd4cdf25c6681e935 [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;