summaryrefslogtreecommitdiff
path: root/cmd/log.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-06-17 21:52:44 +0200
committerSimon Glass <sjg@chromium.org>2020-07-09 18:57:22 -0600
commit3c21d7738a793bb7713df5ac4de434c680fa249f (patch)
treeed06f563175b03bbecf4a42df12a6b58add6e592 /cmd/log.c
parent8af45b1f20f7f56a872297873f793655fe37f8e3 (diff)
downloadu-boot-3c21d7738a793bb7713df5ac4de434c680fa249f.tar.gz
u-boot-3c21d7738a793bb7713df5ac4de434c680fa249f.tar.bz2
u-boot-3c21d7738a793bb7713df5ac4de434c680fa249f.zip
log: don't show function by default
The name of the function emitting a log message may be of interest for a developer but is distracting for normal users. See the example below: try_load_entry() Booting: Debian Make the default format for log messages customizable. By default show only the message text. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/log.c')
-rw-r--r--cmd/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/log.c b/cmd/log.c
index 78352b2cb9..6afe6ead25 100644
--- a/cmd/log.c
+++ b/cmd/log.c
@@ -39,7 +39,7 @@ static int do_log_format(struct cmd_tbl *cmdtp, int flag, int argc,
const char *str = argv[1];
if (!strcmp(str, "default")) {
- gd->log_fmt = LOGF_DEFAULT;
+ gd->log_fmt = log_get_default_format();
} else if (!strcmp(str, "all")) {
gd->log_fmt = LOGF_ALL;
} else {
@@ -139,7 +139,7 @@ static char log_help_text[] =
"log format <fmt> - set log output format. <fmt> is a string where\n"
"\teach letter indicates something that should be displayed:\n"
"\tc=category, l=level, F=file, L=line number, f=function, m=msg\n"
- "\tor 'default', equivalent to 'fm', or 'all' for all\n"
+ "\tor 'default', or 'all' for all\n"
"log rec <category> <level> <file> <line> <func> <message> - "
"output a log record"
;