summaryrefslogtreecommitdiff
path: root/common/log.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-12-28 13:14:17 -0700
committerSimon Glass <sjg@chromium.org>2018-02-03 10:09:27 -0700
commit3b73e8d067fb7cb504bed2018583980a3cd3f4bc (patch)
tree2544f15394f2d107675c06611649eb5efe8e35fd /common/log.c
parentf941c8d76c665045e5d645112a309d12523e19c7 (diff)
log: Add control over log formatting
It is useful to be able to control the output format of log records on the console. As a starting point, add definitions for controlling which elements of the log record are displayed. Use function and message as the default, since these are the most useful fields. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/log.c')
-rw-r--r--common/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/log.c b/common/log.c
index d5f1cc5077..1b1b98e5de 100644
--- a/common/log.c
+++ b/common/log.c
@@ -307,6 +307,7 @@ int log_init(void)
}
gd->flags |= GD_FLG_LOG_READY;
gd->default_log_level = LOGL_INFO;
+ gd->log_fmt = LOGF_DEFAULT;
return 0;
}