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 <emdi@nordicsemi.no>
This commit is contained in:
Emanuele Di Santo 2019-01-10 13:38:16 +01:00 committed by Andrzej Puzdrowski
parent ccc98aa42d
commit 20ba65e151
1 changed files with 6 additions and 0 deletions

View File

@ -90,6 +90,12 @@
* If logging is enabled the following functions must be defined by the * If logging is enabled the following functions must be defined by the
* platform: * 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_ERR(...)
* MCUBOOT_LOG_WRN(...) * MCUBOOT_LOG_WRN(...)
* MCUBOOT_LOG_INF(...) * MCUBOOT_LOG_INF(...)