diff --git a/Sming/Kconfig b/Sming/Kconfig index 5d7ddaac66..5c1821baa6 100644 --- a/Sming/Kconfig +++ b/Sming/Kconfig @@ -73,16 +73,25 @@ mainmenu "Sming Framework Configuration" endmenu menu "Debug" - config DEBUG_VERBOSE_LEVEL - int "Sets detail for debug messages" - default 2 - help - When compiled in debug mode (:envvar:SMING_RELEASE undefined) there are four debug levels in increasing level of verbosity: + choice + default SELECT_DEBUG_INFO + prompt "Sets detail for debug messages" + config SELECT_DEBUG_ERROR + bool "0 Errors only" + config SELECT_DEBUG_WARN + bool "1 Errors and warnings" + config SELECT_DEBUG_INFO + bool "2 Errors, warnings and Information" + config SELECT_DEBUG_DEBUG + bool "3 All debug messages" + endchoice - * 0: errors - * 1: warnings - * 2: information (default) - * 3: debug + config DEBUG_VERBOSE_LEVEL + int + default 0 if SELECT_DEBUG_ERROR + default 1 if SELECT_DEBUG_WARN + default 2 if SELECT_DEBUG_INFO + default 3 if SELECT_DEBUG_DEBUG config DEBUG_PRINT_FILENAME_AND_LINE bool "Include the filename and line number in every line of debug output."