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:
Alberto Escolar Piedras 2019-07-24 16:17:19 +02:00 committed by Kumar Gala
commit 6cd70a5f85
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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