Skip to content

Commit 38eea4a

Browse files
committed
dfu: log: rename level variable
Rename log level variable: CONFIG_LOG_IMG_MANAGER_LEVEL to CONFIG_IMG_MANAGER_LOG_LEVEL Use template for log levels. Signed-off-by: Anas Nashif <[email protected]>
1 parent 0d66664 commit 38eea4a

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

subsys/dfu/Kconfig

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,8 @@ config IMG_BLOCK_BUF_SIZE
3838
Size (in Bytes) of buffer for image writer. Must be a multiple of
3939
the access alignment required by used flash driver.
4040

41-
config LOG_IMG_MANAGER_LEVEL
42-
int "Image manager Log level"
43-
depends on LOG && MCUBOOT_IMG_MANAGER
44-
default 0
45-
range 0 4
46-
help
47-
Sets log level for the image manager.
48-
Levels are:
49-
50-
- 0 OFF: do not write
51-
52-
- 1 ERROR: only write LOG_ERR
53-
54-
- 2 WARNING: write LOG_WRN in addition to previous level
55-
56-
- 3 INFO: write LOG_INF in addition to previous levels
41+
module = IMG_MANAGER
42+
module-str = image manager
43+
source "subsys/logging/Kconfig.template.log_config"
5744

58-
- 4 DEBUG: write LOG_DBG in addition to previous levels
5945
endmenu

subsys/dfu/img_util/flash_img.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
*/
77

88
#define LOG_MODULE_NAME fota_flash_block
9-
#define LOG_LEVEL CONFIG_LOG_IMG_MANAGER_LEVEL
9+
#define LOG_LEVEL CONFIG_IMG_MANAGER_LOG_LEVEL
1010
#include <logging/log.h>
11-
LOG_MODULE_REGISTER();
11+
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
1212

1313
#include <zephyr/types.h>
1414
#include <stddef.h>

0 commit comments

Comments
 (0)