subsys: fs: Use template to define CONFIG_FS_LOG_LEVEL
Use "subsys/logging/Kconfig.template.log_config" as template Signed-off-by: Varun Sharma <varun.sharma@intel.com>
This commit is contained in:
parent
7622fc37a0
commit
3de44b748c
|
@ -15,18 +15,9 @@ config FILE_SYSTEM
|
|||
help
|
||||
Enables support for file system.
|
||||
|
||||
config LOG_FS_LEVEL
|
||||
int "File System log level"
|
||||
depends on LOG
|
||||
default 0
|
||||
help
|
||||
Sets log level for File System drivers.
|
||||
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
|
||||
module = FS
|
||||
module-str = fs
|
||||
source "subsys/logging/Kconfig.template.log_config"
|
||||
|
||||
if FILE_SYSTEM
|
||||
|
||||
|
|
|
@ -12,10 +12,9 @@
|
|||
#include <fs.h>
|
||||
|
||||
|
||||
#define LOG_MODULE_NAME fs
|
||||
#define LOG_LEVEL CONFIG_LOG_FS_LEVEL
|
||||
#define LOG_LEVEL CONFIG_FS_LOG_LEVEL
|
||||
#include <logging/log.h>
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||
LOG_MODULE_REGISTER(fs);
|
||||
|
||||
/* list of mounted file systems */
|
||||
static sys_dlist_t fs_mnt_list;
|
||||
|
|
Loading…
Reference in a new issue