coding guidelines: comply with MISRA Rule 12.1.

-added parentheses verifying lack of ambiguities

Signed-off-by: Hess Nathan <nhess@baumer.com>
This commit is contained in:
Hess Nathan 2024-05-02 12:55:30 +02:00 committed by Anas Nashif
commit aaec285cd5

View file

@ -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(" ");
}