summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-07 13:47:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-29 12:15:40 +0200
commit666f12e0c19a19f4431e05f6e5b37e657a62038f (patch)
treeba5a20de0da52c1651184e080440462f97c8305a /common/Kconfig
parent61694c93cd9e47e2ea72d9095817040a4c0c2cee (diff)
downloadbarebox-666f12e0c19a19f4431e05f6e5b37e657a62038f.tar.gz
barebox-666f12e0c19a19f4431e05f6e5b37e657a62038f.tar.xz
introduce runtime loglevel
With this the verbosity of barebox can be controlled during runtime using the 'loglevel' globalvar. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig18
1 files changed, 17 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 5d922847e8..87abaf0b27 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -607,7 +607,7 @@ endmenu
menu "Debugging"
config COMPILE_LOGLEVEL
- int "loglevel"
+ int "compile loglevel"
default 6
help
This defines the maximum loglevel compiled into the binary. Less important
@@ -622,6 +622,22 @@ config COMPILE_LOGLEVEL
6 informational (info)
7 debug-level messages (debug)
+config DEFAULT_LOGLEVEL
+ int "default loglevel"
+ default 7
+ help
+ This defines the default runtime loglevel. It can be changed using the
+ global.loglevel variable. Available logelevels are:
+
+ 0 system is unusable (emerg)
+ 1 action must be taken immediately (alert)
+ 2 critical conditions (crit)
+ 3 error conditions (err)
+ 4 warning conditions (warn)
+ 5 normal but significant condition (notice)
+ 6 informational (info)
+ 7 debug-level messages (debug)
+
config DEBUG_INFO
bool
prompt "enable debug symbols"