diff options
author | Simon Glass <sjg@chromium.org> | 2017-12-04 13:48:24 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-12-07 15:17:00 -0500 |
commit | e9c8d49d54cbbc7b219a1637d2994de7448b767d (patch) | |
tree | ad254b7403ca0294045c671ee18d4286b4aac991 /common/Kconfig | |
parent | c5404b64fb5a35d41f7eff6d12b8ffdb0c851040 (diff) | |
download | u-boot-e9c8d49d54cbbc7b219a1637d2994de7448b767d.tar.gz |
log: Add an implementation of logging
Add the logging header file and implementation with some configuration
options to control it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/Kconfig')
-rw-r--r-- | common/Kconfig | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index c50d6ebb2a..9747443feb 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -420,6 +420,62 @@ config SYS_STDIO_DEREGISTER endmenu +menu "Logging" + +config LOG + bool "Enable logging support" + help + This enables support for logging of status and debug messages. These + can be displayed on the console, recorded in a memory buffer, or + discarded if not needed. Logging supports various categories and + levels of severity. + +config SPL_LOG + bool "Enable logging support in SPL" + help + This enables support for logging of status and debug messages. These + can be displayed on the console, recorded in a memory buffer, or + discarded if not needed. Logging supports various categories and + levels of severity. + +config LOG_MAX_LEVEL + int "Maximum log level to record" + depends on LOG + default 5 + help + This selects the maximum log level that will be recorded. Any value + higher than this will be ignored. If possible log statements below + this level will be discarded at build time. Levels: + + 0 - panic + 1 - critical + 2 - error + 3 - warning + 4 - note + 5 - info + 6 - detail + 7 - debug + +config SPL_LOG_MAX_LEVEL + int "Maximum log level to record in SPL" + depends on SPL_LOG + default 3 + help + This selects the maximum log level that will be recorded. Any value + higher than this will be ignored. If possible log statements below + this level will be discarded at build time. Levels: + + 0 - panic + 1 - critical + 2 - error + 3 - warning + 4 - note + 5 - info + 6 - detail + 7 - debug + +endmenu + config DEFAULT_FDT_FILE string "Default fdt file" help |