Skip to content

Commit

Permalink
Menu for debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Sep 26, 2021
1 parent 0d31361 commit 618245b
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions Sming/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 618245b

Please sign in to comment.