aboutsummaryrefslogtreecommitdiff
path: root/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmesg.c')
-rw-r--r--dmesg.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/dmesg.c b/dmesg.c
index 2bbf43a12..6fa17b5fb 100644
--- a/dmesg.c
+++ b/dmesg.c
@@ -34,7 +34,15 @@ static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
34# include <sys/klog.h> 34# include <sys/klog.h>
35#endif 35#endif
36 36
37static const char dmesg_usage[] = "dmesg [-c] [-n level] [-s bufsize]\n"; 37static const char dmesg_usage[] = "dmesg [-c] [-n LEVEL] [-s SIZE]\n"
38#ifndef BB_FEATURE_TRIVIAL_HELP
39 "\nPrints or controls the kernel ring buffer\n\n"
40 "Options:\n"
41 "\t-c\t\tClears the ring buffer's contents after printing\n"
42 "\t-n LEVEL\tSets console logging level\n"
43 "\t-s SIZE\t\tUse a buffer of size SIZE\n"
44#endif
45 ;
38 46
39int dmesg_main(int argc, char **argv) 47int dmesg_main(int argc, char **argv)
40{ 48{