summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-06-12 14:23:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-06-13 08:42:08 +0200
commitd78884a29d13046dc1e56a3519abd328a88fdf11 (patch)
treed28f4264eeb16554130e74510c2ec1c0712a924b /commands
parent7df3c4fc6ead90893ca4baa274761756fb7f8593 (diff)
downloadbarebox-d78884a29d13046dc1e56a3519abd328a88fdf11.tar.gz
barebox-d78884a29d13046dc1e56a3519abd328a88fdf11.tar.xz
dmesg: udpate help
Now that there are two options which take a loglevel as argument describe the available loglevels in the command description and not in the argument description. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/dmesg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/commands/dmesg.c b/commands/dmesg.c
index a25e3265dd..83410234e1 100644
--- a/commands/dmesg.c
+++ b/commands/dmesg.c
@@ -156,12 +156,18 @@ static int do_dmesg(int argc, char *argv[])
return 0;
}
+
BAREBOX_CMD_HELP_START(dmesg)
+BAREBOX_CMD_HELP_TEXT("print or control the barebox message buffer")
+BAREBOX_CMD_HELP_TEXT("Loglevels can be specified as number (0=emerg, 7=vdebug)")
+BAREBOX_CMD_HELP_TEXT("Known debug loglevels are: emerg, alert, crit, err, warn, notice, info, debug,")
+BAREBOX_CMD_HELP_TEXT("vdebug")
+BAREBOX_CMD_HELP_TEXT("")
BAREBOX_CMD_HELP_TEXT("Options:")
BAREBOX_CMD_HELP_OPT ("-c", "Delete messages after printing them")
BAREBOX_CMD_HELP_OPT ("-d", "Show a time delta to the last message")
BAREBOX_CMD_HELP_OPT ("-e <msg>", "Emit a log message")
-BAREBOX_CMD_HELP_OPT ("-l <vdebug|debug|info|notice|warn|err|crit|alert|emerg>", "Restrict output to the given (comma-separated) list of levels")
+BAREBOX_CMD_HELP_OPT ("-l <loglevel>", "Restrict output to the given (comma-separated) list of levels")
BAREBOX_CMD_HELP_OPT ("-n <loglevel>", "Set level at which printing of messages is done to the console")
BAREBOX_CMD_HELP_OPT ("-r", "Print timestamp and log-level prefixes.")
BAREBOX_CMD_HELP_OPT ("-t", "Show timestamp informations")