Skip to content

Commit 1f2bf47

Browse files
committed
[nrf fromtree] logging: frontends: stmesp: Fix logging single argument log twice
Macro was missing a break when single argument with non 32 bit word argument was detect. Because of that, there were two logging messages created for a single log entry. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 9b2532a)
1 parent 80cc531 commit 1f2bf47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/logging/frontends/stmesp/zephyr_custom_log.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ extern "C" {
6969
/* Do turbo logging only if argument fits in 32 bit word. */ \
7070
if (!Z_LOG_STMESP_1_ARG_CHECK(__VA_ARGS__)) { \
7171
COND_CODE_1(CONFIG_LOG_FRONTEND_STMESP_TURBO_DROP_OTHERS, (), \
72-
(Z_LOG(_level, __VA_ARGS__))); \
72+
(Z_LOG(_level, __VA_ARGS__))); \
73+
break; \
7374
} \
7475
if (!Z_LOG_LEVEL_ALL_CHECK(_level, __log_current_const_data, _source)) { \
7576
break; \

0 commit comments

Comments
 (0)