aboutsummaryrefslogtreecommitdiff
path: root/util-linux/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/dmesg.c')
-rw-r--r--util-linux/dmesg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c
index b797c7b2a..a1f269142 100644
--- a/util-linux/dmesg.c
+++ b/util-linux/dmesg.c
@@ -74,7 +74,7 @@ int dmesg_main(int argc UNUSED_PARAM, char **argv)
74 opts = getopt32(argv, "cs:+n:+r", &len, &level); 74 opts = getopt32(argv, "cs:+n:+r", &len, &level);
75 if (opts & OPT_n) { 75 if (opts & OPT_n) {
76 if (klogctl(8, NULL, (long) level)) 76 if (klogctl(8, NULL, (long) level))
77 bb_perror_msg_and_die("klogctl"); 77 bb_simple_perror_msg_and_die("klogctl");
78 return EXIT_SUCCESS; 78 return EXIT_SUCCESS;
79 } 79 }
80 80
@@ -88,7 +88,7 @@ int dmesg_main(int argc UNUSED_PARAM, char **argv)
88 buf = xmalloc(len); 88 buf = xmalloc(len);
89 len = klogctl(3 + (opts & OPT_c), buf, len); /* read ring buffer */ 89 len = klogctl(3 + (opts & OPT_c), buf, len); /* read ring buffer */
90 if (len < 0) 90 if (len < 0)
91 bb_perror_msg_and_die("klogctl"); 91 bb_simple_perror_msg_and_die("klogctl");
92 if (len == 0) 92 if (len == 0)
93 return EXIT_SUCCESS; 93 return EXIT_SUCCESS;
94 94