Merge "Revert "logd: trailing spaces in log statistics""
am: 1fa079b255
Change-Id: I19eb25472a59f2b82e711552aae7fa74085d93ba
diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp
index 6e63015..273150e 100644
--- a/logd/LogStatistics.cpp
+++ b/logd/LogStatistics.cpp
@@ -309,7 +309,7 @@
if ((spaces <= 0) && pruned.length()) {
spaces = 1;
}
- if ((spaces > 0) && (pruned.length() != 0)) {
+ if (spaces > 0) {
change += android::base::StringPrintf("%*s", (int)spaces, "");
}
pruned = change + pruned;