logging: log_minimal: Fix violations to rule 10.4

Logical AND operator accepts only unsigned type and operands.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-04-19 09:36:56 -07:00 committed by Anas Nashif
parent 3687021c83
commit 8cbda26cdd

View file

@ -29,7 +29,7 @@ static void minimal_hexdump_line_print(const char *data, size_t length)
{
for (size_t i = 0U; i < HEXDUMP_BYTES_IN_LINE; i++) {
if (i < length) {
printk("%02x ", data[i] & 0xFF);
printk("%02x ", (unsigned char)data[i] & 0xFFu);
} else {
printk(" ");
}