From 3b73e8d067fb7cb504bed2018583980a3cd3f4bc Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 28 Dec 2017 13:14:17 -0700 Subject: 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 --- common/log.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common/log.c') diff --git a/common/log.c b/common/log.c index d5f1cc5..1b1b98e 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; } -- cgit v1.1