Skip to content

Commit

Permalink
logging: frontend_stmesp: Fix compilation
Browse files Browse the repository at this point in the history
Casting an argument was missing parenthesis so if argument was an
expression then casting was applied only to the first element and
that could lead to compilation warnings.

Signed-off-by: Krzysztof Chruściński <[email protected]>
  • Loading branch information
nordic-krch authored and kartben committed Dec 10, 2024
1 parent 5dfd41e commit 74d2735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/logging/log_frontend_stmesp.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ TYPE_SECTION_START_EXTERN(const char *, log_stmesp_ptr);
uint32_t idx = \
((uintptr_t)&_str_ptr - (uintptr_t)TYPE_SECTION_START(log_stmesp_ptr)) / \
sizeof(void *); \
log_frontend_stmesp_log1(_source, idx, (uintptr_t)GET_ARG_N(2, __VA_ARGS__)); \
log_frontend_stmesp_log1(_source, idx, (uintptr_t)(GET_ARG_N(2, __VA_ARGS__))); \
} while (0)

#ifdef __cplusplus
Expand Down

0 comments on commit 74d2735

Please sign in to comment.