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:
parent
b77b099bf9
commit
81c3d7b925
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue