Merge \\"logd: trailing spaces in log statistics\\" am: d59d16a49d
am: 35f7799f16
Change-Id: Ice558919a34a1085c72cf47c270e7feeac89208d
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;