aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/lsb/dmesg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/lsb/dmesg.c b/toys/lsb/dmesg.c
index aac638d0..d6084466 100644
--- a/toys/lsb/dmesg.c
+++ b/toys/lsb/dmesg.c
@@ -45,7 +45,7 @@ void dmesg_main(void)
if (!size && 1>(size = klogctl(10, 0, 0))) perror_exit("klogctl");;
data = to = from = xmalloc(size+1);
size = klogctl(3 + (toys.optflags & FLAG_c), data, size);
- if (size < 0) error_exit("klogctl");
+ if (size < 0) perror_exit("klogctl");
data[size] = 0;
// Filter out level markers and optionally time markers