From aaec285cd59832da245a4b2fe33d6890aef0dbf7 Mon Sep 17 00:00:00 2001 From: Hess Nathan Date: Thu, 2 May 2024 12:55:30 +0200 Subject: [PATCH] coding guidelines: comply with MISRA Rule 12.1. -added parentheses verifying lack of ambiguities Signed-off-by: Hess Nathan --- subsys/logging/log_minimal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/logging/log_minimal.c b/subsys/logging/log_minimal.c index 11a27f701bb..1340cf59c27 100644 --- a/subsys/logging/log_minimal.c +++ b/subsys/logging/log_minimal.c @@ -43,7 +43,7 @@ static void minimal_hexdump_line_print(const char *data, size_t length) if (i < length) { unsigned char c = data[i]; - printk("%c", isprint((int)c) != 0 ? c : '.'); + printk("%c", (isprint((int)c) != 0) ? c : '.'); } else { printk(" "); }