summaryrefslogtreecommitdiffstats
path: root/logd/LogStatistics.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2016-12-20 18:15:59 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-12-20 18:16:00 +0000
commit1fa079b2555a12a53a6d25956d4f371ace60edce (patch)
tree1d0f82e2268507169de8488f1a0866a5808e5cd1 /logd/LogStatistics.cpp
parent3080ce2fe4c4d82deb7b89b30e3c839528b23c3d (diff)
parentd966e226809bd446bb33651b71d7934887787c1d (diff)
downloadcore-1fa079b2555a12a53a6d25956d4f371ace60edce.tar.gz
core-1fa079b2555a12a53a6d25956d4f371ace60edce.tar.bz2
core-1fa079b2555a12a53a6d25956d4f371ace60edce.zip
Merge "Revert "logd: trailing spaces in log statistics""
Diffstat (limited to 'logd/LogStatistics.cpp')
-rw-r--r--logd/LogStatistics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp
index 6e63015ac..273150e7d 100644
--- a/logd/LogStatistics.cpp
+++ b/logd/LogStatistics.cpp
@@ -309,7 +309,7 @@ std::string UidEntry::format(const LogStatistics &stat, log_id_t id) const {
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;