coding guidelines: comply with MISRA Rule 20.9

- avoid to use undefined macros in #if expressions

Signed-off-by: Hess Nathan <nhess@baumer.com>
This commit is contained in:
Hess Nathan 2024-04-29 14:17:43 +02:00 committed by Fabio Baltieri
commit a5b1b3045b

View file

@ -140,7 +140,7 @@ static void process(const struct log_backend *const backend,
}
zassert_equal(msg->log.hdr.timestamp, exp->timestamp,
#if CONFIG_LOG_TIMESTAMP_64BIT
#ifdef CONFIG_LOG_TIMESTAMP_64BIT
"Got: %llu, expected: %llu",
#else
"Got: %u, expected: %u",