Skip to content

Commit

Permalink
coding guidelines: comply with MISRA Rule 20.9
Browse files Browse the repository at this point in the history
- avoid to use undefined macros in #if expressions

Signed-off-by: Hess Nathan <nhess@baumer.com>
  • Loading branch information
DeHess authored and fabiobaltieri committed May 6, 2024
1 parent f147a5f commit a5b1b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/subsys/logging/log_api/src/mock_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a5b1b30

Please sign in to comment.