From 20ba65e1513686558afe0ea8ca186b53a2f7ad10 Mon Sep 17 00:00:00 2001 From: Emanuele Di Santo Date: Thu, 10 Jan 2019 13:38:16 +0100 Subject: [PATCH] samples: mcuboot_config: introduce MCUBOOT_LOG_MODULE macros Introduce MCUBOOT_LOG_MODULE_REGISTER and MCUBOOT_LOG_MODULE_DECLARE. - MCUBOOT_LOG_MODULE_REGISTER Register a new log module and add the current C file to it. - MCUBOOT_LOG_MODULE_DECLARE Add the current C file to an existing log module. Signed-off-by: Emanuele Di Santo --- samples/mcuboot_config/mcuboot_config.template.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/samples/mcuboot_config/mcuboot_config.template.h b/samples/mcuboot_config/mcuboot_config.template.h index ee73daac..3dee47ec 100644 --- a/samples/mcuboot_config/mcuboot_config.template.h +++ b/samples/mcuboot_config/mcuboot_config.template.h @@ -90,6 +90,12 @@ * If logging is enabled the following functions must be defined by the * platform: * + * MCUBOOT_LOG_MODULE_REGISTER(domain) + * Register a new log module and add the current C file to it. + * + * MCUBOOT_LOG_MODULE_DECLARE(domain) + * Add the current C file to an existing log module. + * * MCUBOOT_LOG_ERR(...) * MCUBOOT_LOG_WRN(...) * MCUBOOT_LOG_INF(...)