logging: Add mising handling of function prefix
When printk is redirected to the logging it is using level 0. Level 0 was missing a define used for detection of function prefix use which lead to compilation failure when logging v2 was used with CONFIG_LOG_PRINTK=y. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
0365a6f852
commit
afe87be841
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ extern "C" {
|
|||
)
|
||||
|
||||
/* Set of defines that are set to 1 if function name prefix is enabled for given level. */
|
||||
#define Z_LOG_FUNC_PREFIX_0U 0
|
||||
#define Z_LOG_FUNC_PREFIX_1U COND_CODE_1(CONFIG_LOG_FUNC_NAME_PREFIX_ERR, (1), (0))
|
||||
#define Z_LOG_FUNC_PREFIX_2U COND_CODE_1(CONFIG_LOG_FUNC_NAME_PREFIX_WRN, (1), (0))
|
||||
#define Z_LOG_FUNC_PREFIX_3U COND_CODE_1(CONFIG_LOG_FUNC_NAME_PREFIX_INF, (1), (0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue