Commit 20ba65e1 authored by Emanuele Di Santo's avatar Emanuele Di Santo Committed by Andrzej Puzdrowski
Browse files

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: default avatarEmanuele Di Santo <emdi@nordicsemi.no>
parent ccc98aa4
Loading
Loading
Loading
Loading
+6
Changes for samples/mcuboot_config/mcuboot_config.template.h: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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(...)