logging: Fix undefined macro warning
Fix undefined macro warning if CONFIG_LOG or CONFIG_LOG_RUNTIME_FILTERING are not selected Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
parent
0b0e7eeb15
commit
6cd70a5f85
2 changed files with 2 additions and 2 deletions
|
@ -168,7 +168,7 @@ void log_backend_enable(struct log_backend const *const backend,
|
|||
*/
|
||||
void log_backend_disable(struct log_backend const *const backend);
|
||||
|
||||
#if CONFIG_LOG
|
||||
#if defined(CONFIG_LOG)
|
||||
#define LOG_INIT() log_init()
|
||||
#define LOG_PANIC() log_panic()
|
||||
#define LOG_PROCESS() log_process(false)
|
||||
|
|
|
@ -73,7 +73,7 @@ struct log_source_dynamic_data {
|
|||
#define LOG_INSTANCE_FULL_NAME(_module_name, _inst_name) \
|
||||
UTIL_CAT(_module_name, UTIL_CAT(_, _inst_name))
|
||||
|
||||
#if CONFIG_LOG_RUNTIME_FILTERING
|
||||
#if defined(CONFIG_LOG_RUNTIME_FILTERING)
|
||||
#define LOG_INSTANCE_PTR_DECLARE(_name) \
|
||||
struct log_source_dynamic_data *_name
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue