logging: Make statements evaluate boolean expressions
MISRA-C requires that the if statement has essentially Boolean type. MISRA-C rule 14.4 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
051a7057a9
commit
f18e632566
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ extern "C" {
|
|||
_LOG_INTERNAL_X(_LOG_NARGS_POSTFIX(__VA_ARGS__), \
|
||||
_src_level, __VA_ARGS__);\
|
||||
} \
|
||||
} while (0)
|
||||
} while (false)
|
||||
|
||||
#define _LOG_INTERNAL_0(_src_level, _str) \
|
||||
log_0(_str, _src_level)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue