log: Add a Kconfig option to set the default log level
[oweals/u-boot.git] / common / Kconfig
index 849d8ff90ad29d3108d4bd99adc270885245a0c6..e100c2294961944fcfbaeb9d174b79fe9a2b6812 100644 (file)
@@ -535,6 +535,26 @@ config TPL_LOG_MAX_LEVEL
            8 - debug content
            9 - debug hardware I/O
 
+config LOG_DEFAULT_LEVEL
+       int "Default logging level to display"
+       default 6
+       help
+         This is the default logging level set when U-Boot starts. It can
+         be adjusted later using the 'log level' command. Note that setting
+         this to a value abnove LOG_MAX_LEVEL will be ineffective, since the
+         higher levels are not compiled in to U-Boot.
+
+           0 - emergency
+           1 - alert
+           2 - critical
+           3 - error
+           4 - warning
+           5 - note
+           6 - info
+           7 - debug
+           8 - debug content
+           9 - debug hardware I/O
+
 config LOG_CONSOLE
        bool "Allow log output to the console"
        depends on LOG