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;