diff options
author | Mark Salyzyn | 2016-07-15 09:40:33 -0500 |
---|---|---|
committer | Mark Salyzyn | 2016-07-15 13:00:44 -0500 |
commit | 0adcc3e3e8bd6d7c57994f828ee22c104b4eb043 (patch) | |
tree | b7758303e0985153da3cda6b365560a1aef10d09 /logd/LogStatistics.cpp | |
parent | a17427cb1e9caaeb4dde7184b05dfa4b3b1f7172 (diff) | |
download | platform-system-core-0adcc3e3e8bd6d7c57994f828ee22c104b4eb043.tar.gz platform-system-core-0adcc3e3e8bd6d7c57994f828ee22c104b4eb043.tar.xz platform-system-core-0adcc3e3e8bd6d7c57994f828ee22c104b4eb043.zip |
logd: trailing spaces in log statistics
Bug: 30118730
Change-Id: I8cccbc1da2cf8168ec9cf12f07df4cafef076558
Diffstat (limited to 'logd/LogStatistics.cpp')
-rw-r--r-- | logd/LogStatistics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp index 02a4a7534..a2d2aa525 100644 --- a/logd/LogStatistics.cpp +++ b/logd/LogStatistics.cpp | |||
@@ -284,7 +284,7 @@ std::string UidEntry::format(const LogStatistics &stat, log_id_t id) const { | |||
284 | if ((spaces <= 0) && pruned.length()) { | 284 | if ((spaces <= 0) && pruned.length()) { |
285 | spaces = 1; | 285 | spaces = 1; |
286 | } | 286 | } |
287 | if (spaces > 0) { | 287 | if ((spaces > 0) && (pruned.length() != 0)) { |
288 | change += android::base::StringPrintf("%*s", (int)spaces, ""); | 288 | change += android::base::StringPrintf("%*s", (int)spaces, ""); |
289 | } | 289 | } |
290 | pruned = change + pruned; | 290 | pruned = change + pruned; |