aboutsummaryrefslogtreecommitdiff
path: root/common/log.c
diff options
context:
space:
mode:
authorSimon Glass2019-02-16 20:24:35 -0700
committerBin Meng2019-02-20 15:21:44 +0800
commitf0b05c95e3906fc25989e245b421dc5ec6becd72 (patch)
tree1c6ea36437008f7fcf26e1da41c6526d8fda56db /common/log.c
parent6fc7e93896e980d8eebf9cff46501f495a1fc361 (diff)
log: Add a Kconfig option to set the default log level
At present the default log level is set to LOGL_INFO on start-up. Allow this to be controlled from Kconfig. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'common/log.c')
-rw-r--r--common/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/log.c b/common/log.c
index ec14644516c..ffb3cd69332 100644
--- a/common/log.c
+++ b/common/log.c
@@ -316,7 +316,7 @@ int log_init(void)
}
gd->flags |= GD_FLG_LOG_READY;
if (!gd->default_log_level)
- gd->default_log_level = LOGL_INFO;
+ gd->default_log_level = CONFIG_LOG_DEFAULT_LEVEL;
gd->log_fmt = LOGF_DEFAULT;
return 0;