logging: Fix logical operator use

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>
This commit is contained in:
Krzysztof Chruściński 2023-10-19 15:03:56 +02:00 committed by Carles Cufí
parent bc5da1a158
commit 94e5311215

View file

@ -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; \
} \