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:
parent
bc5da1a158
commit
94e5311215
|
@ -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; \
|
||||
} \
|
||||
|
|
Loading…
Reference in a new issue