diff options
Diffstat (limited to 'dmesg.c')
-rw-r--r-- | dmesg.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 | ||
37 | static const char dmesg_usage[] = "dmesg [-c] [-n level] [-s bufsize]\n"; | 37 | static 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 | ||
39 | int dmesg_main(int argc, char **argv) | 47 | int dmesg_main(int argc, char **argv) |
40 | { | 48 | { |