Merge "Revert "logd: trailing spaces in log statistics"" am: 1fa079b255 am: 827973369d am: 2888798e8d
am: 8b76b78ac2
Change-Id: I02fa8ca9fc4a0eb081ce24a02c6c411e946220e0
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;