diff --git a/subsys/dfu/Kconfig b/subsys/dfu/Kconfig index 9ff6250c59c..cac1855132e 100644 --- a/subsys/dfu/Kconfig +++ b/subsys/dfu/Kconfig @@ -38,22 +38,8 @@ config IMG_BLOCK_BUF_SIZE Size (in Bytes) of buffer for image writer. Must be a multiple of the access alignment required by used flash driver. -config LOG_IMG_MANAGER_LEVEL - int "Image manager Log level" - depends on LOG && MCUBOOT_IMG_MANAGER - default 0 - range 0 4 - help - Sets log level for the image manager. - Levels are: +module = IMG_MANAGER +module-str = image manager +source "subsys/logging/Kconfig.template.log_config" - - 0 OFF: do not write - - - 1 ERROR: only write LOG_ERR - - - 2 WARNING: write LOG_WRN in addition to previous level - - - 3 INFO: write LOG_INF in addition to previous levels - - - 4 DEBUG: write LOG_DBG in addition to previous levels endmenu diff --git a/subsys/dfu/img_util/flash_img.c b/subsys/dfu/img_util/flash_img.c index 2164c895f1d..b8fafc66e67 100644 --- a/subsys/dfu/img_util/flash_img.c +++ b/subsys/dfu/img_util/flash_img.c @@ -6,9 +6,9 @@ */ #define LOG_MODULE_NAME fota_flash_block -#define LOG_LEVEL CONFIG_LOG_IMG_MANAGER_LEVEL +#define LOG_LEVEL CONFIG_IMG_MANAGER_LOG_LEVEL #include -LOG_MODULE_REGISTER(); +LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include #include