2018-09-12 15:21:17 +08:00
|
|
|
choice
|
|
|
|
prompt "Max compiled-in log level for $(module-str)"
|
|
|
|
default $(module)_LOG_LEVEL_INF
|
2018-10-19 21:27:34 +08:00
|
|
|
depends on LOG
|
2018-09-12 15:21:17 +08:00
|
|
|
|
|
|
|
config $(module)_LOG_LEVEL_OFF
|
|
|
|
bool "Off"
|
|
|
|
|
|
|
|
config $(module)_LOG_LEVEL_ERR
|
|
|
|
bool "Error"
|
|
|
|
|
|
|
|
config $(module)_LOG_LEVEL_WRN
|
|
|
|
bool "Warning"
|
|
|
|
|
|
|
|
config $(module)_LOG_LEVEL_INF
|
|
|
|
bool "Info"
|
|
|
|
|
|
|
|
config $(module)_LOG_LEVEL_DBG
|
|
|
|
bool "Debug"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config $(module)_LOG_LEVEL
|
|
|
|
int
|
2018-10-19 21:27:34 +08:00
|
|
|
depends on LOG
|
2018-09-12 15:21:17 +08:00
|
|
|
default 0 if $(module)_LOG_LEVEL_OFF
|
|
|
|
default 1 if $(module)_LOG_LEVEL_ERR
|
|
|
|
default 2 if $(module)_LOG_LEVEL_WRN
|
|
|
|
default 3 if $(module)_LOG_LEVEL_INF
|
|
|
|
default 4 if $(module)_LOG_LEVEL_DBG
|