From c3ce224c622e064207d1aff03f2440ca19617b4a Mon Sep 17 00:00:00 2001 From: Arseniy Antonov Date: Wed, 3 Sep 2014 17:29:20 +0400 Subject: [PATCH] Fix for parenthesis error Added parentheses as it was suggested by compiler. error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses] Change-Id: Ic3746d9804488411d10d460ddfda11f1fad8efef Signed-off-by: Arseniy Antonov --- logd/LogStatistics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logd/LogStatistics.cpp b/logd/LogStatistics.cpp index 81c9babb0..a2f27c641 100644 --- a/logd/LogStatistics.cpp +++ b/logd/LogStatistics.cpp @@ -524,7 +524,7 @@ void LogStatistics::format(char **buf, short spaces = 2; log_id_for_each(i) { - if (!logMask & (1 << i)) { + if (!(logMask & (1 << i))) { continue; } oldLength = string.length();