diff --git a/include/logging/log.h b/include/logging/log.h index 8c329c41ecd..142fde13b51 100644 --- a/include/logging/log.h +++ b/include/logging/log.h @@ -423,9 +423,8 @@ static inline char *log_strdup(const char *str) * @param level Level used in file or in function. * */ -#define LOG_LEVEL_SET(level) \ - static const u32_t __log_level __unused = \ - _LOG_LEVEL_RESOLVE(level) +#define LOG_LEVEL_SET(level) static const u32_t __log_level __unused = \ + Z_LOG_RESOLVED_LEVEL(level, 0) /** * @}