summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2024-03-15 13:15:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-03-15 13:15:24 +0100
commit4ddf024563216c284c7375a485a167c73e2eaed4 (patch)
tree0cf1fe711bbd95cb3488c9a40ada5e14e71ca43d /commands
parent46149a0260cbe7ec86e7fabd83c6e68f1b900e54 (diff)
parentdc82ff225a9bf1e601b7091664769908aa78dcba (diff)
downloadbarebox-4ddf024563216c284c7375a485a167c73e2eaed4.tar.gz
barebox-4ddf024563216c284c7375a485a167c73e2eaed4.tar.xz
Merge branch 'for-next/misc'
Diffstat (limited to 'commands')
-rw-r--r--commands/dmesg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/dmesg.c b/commands/dmesg.c
index 83410234e1..8a60f07507 100644
--- a/commands/dmesg.c
+++ b/commands/dmesg.c
@@ -76,7 +76,7 @@ static unsigned dmesg_get_levels(const char *__args)
static int do_dmesg(int argc, char *argv[])
{
- int opt, i;
+ int opt, ret, i;
int delete_buf = 0, emit = 0;
unsigned flags = 0, levels = 0;
char *set = NULL;
@@ -148,7 +148,9 @@ static int do_dmesg(int argc, char *argv[])
return 0;
}
- log_print(flags, levels);
+ ret = log_print(flags, levels);
+ if (ret)
+ return 1;
if (delete_buf)
log_clean(10);