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 <anas.nashif@intel.com>
This commit is contained in:
parent
1e630baa02
commit
7dea257e92
2 changed files with 5 additions and 19 deletions
|
@ -38,22 +38,8 @@ config IMG_BLOCK_BUF_SIZE
|
||||||
Size (in Bytes) of buffer for image writer. Must be a multiple of
|
Size (in Bytes) of buffer for image writer. Must be a multiple of
|
||||||
the access alignment required by used flash driver.
|
the access alignment required by used flash driver.
|
||||||
|
|
||||||
config LOG_IMG_MANAGER_LEVEL
|
module = IMG_MANAGER
|
||||||
int "Image manager Log level"
|
module-str = image manager
|
||||||
depends on LOG && MCUBOOT_IMG_MANAGER
|
source "subsys/logging/Kconfig.template.log_config"
|
||||||
default 0
|
|
||||||
range 0 4
|
|
||||||
help
|
|
||||||
Sets log level for the image manager.
|
|
||||||
Levels are:
|
|
||||||
|
|
||||||
- 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
|
endmenu
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LOG_MODULE_NAME fota_flash_block
|
#define LOG_MODULE_NAME fota_flash_block
|
||||||
#define LOG_LEVEL CONFIG_LOG_IMG_MANAGER_LEVEL
|
#define LOG_LEVEL CONFIG_IMG_MANAGER_LOG_LEVEL
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
LOG_MODULE_REGISTER();
|
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||||
|
|
||||||
#include <zephyr/types.h>
|
#include <zephyr/types.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue