Skip to content

Commit

Permalink
logging: Fix logical operator use
Browse files Browse the repository at this point in the history
Replace & with &&. In that case there is no difference in the
behavior but logical operator should be used here.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
  • Loading branch information
nordic-krch authored and carlescufi committed Oct 20, 2023
1 parent bc5da1a commit 94e5311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/logging/log_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static inline char z_log_minimal_level_to_char(int level)
break; \
} \
/* For instance logging check instance specific static level */ \
if (_inst & !IS_ENABLED(CONFIG_LOG_RUNTIME_FILTERING)) { \
if (_inst && !IS_ENABLED(CONFIG_LOG_RUNTIME_FILTERING)) { \
if (_level > ((struct log_source_const_data *)_source)->level) { \
break; \
} \
Expand Down

0 comments on commit 94e5311

Please sign in to comment.