diff options
author | Simon Glass | 2018-10-01 11:55:06 -0600 |
---|---|---|
committer | Simon Glass | 2018-10-09 04:40:26 -0600 |
commit | cdd140af5c6b623d31ac87a8054cee55fb70d3f0 (patch) | |
tree | 2611fa049af667c73e353be43fb8a5aa11c4c7f1 /configs/sandbox_flattree_defconfig | |
parent | fbcf37e48ebb9829c85651378191e33f6ece710e (diff) |
log: Add helpers for common log levels
At present to output a log message you need something like:
log(UCLASS_SPI, LOCL_INFO, "message1");
log(UCLASS_SPI, LOCL_INFO, "message2");
but many files use the same category throughout. Also it is helpful to
shorten the length of log names, providing helpers for common logging
levels. Add some macros so that it is possible to do:
(top of file, before #includes)
#define LOG_CATEGORY UCLASS_SPI
(later in the file)
log_info("message1");
log_debug("message2");
log_err("message3");
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'configs/sandbox_flattree_defconfig')
-rw-r--r-- | configs/sandbox_flattree_defconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/sandbox_flattree_defconfig b/configs/sandbox_flattree_defconfig index 9f672e50635..2f8a98c379c 100644 --- a/configs/sandbox_flattree_defconfig +++ b/configs/sandbox_flattree_defconfig @@ -15,6 +15,7 @@ CONFIG_BOOTSTAGE_STASH_SIZE=0x4096 CONFIG_CONSOLE_RECORD=y CONFIG_CONSOLE_RECORD_OUT_SIZE=0x1000 CONFIG_SILENT_CONSOLE=y +CONFIG_LOG_MAX_LEVEL=6 CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_CMD_CPU=y CONFIG_CMD_LICENSE=y |