logging: Fix LOG_LEVEL_SET macro

LOG_LEVEL_SET was ignoring level argument and was setting default
log level always.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2020-03-24 14:43:44 +01:00 committed by Anas Nashif
commit 81c3d7b925

View file

@ -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)
/**
* @}