From d966e226809bd446bb33651b71d7934887787c1d Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Mon, 19 Dec 2016 22:23:03 +0000 Subject: [PATCH] Revert "logd: trailing spaces in log statistics" Caused +/- field data to land under the Pruned column This reverts commit 0adcc3e3e8bd6d7c57994f828ee22c104b4eb043. Test: manual Bug: 30118730 Change-Id: Ic75ce3a90baded19f3efc0cc77474fe5d9a8accd --- logd/LogStatistics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp index ddbb64fb1..31de2a08f 100644 --- a/logd/LogStatistics.cpp +++ b/logd/LogStatistics.cpp @@ -304,7 +304,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;