"mount" now reports errors from nfsmount() and assumes NFS mount
[oweals/busybox.git] / util-linux / dmesg.c
index 2bbf43a12b86dd98e4164c337a49a274808472d6..c4f4fb408f6810c23f82ae0b236ac46095d9fca9 100644 (file)
@@ -18,7 +18,6 @@
 #include "internal.h"
 #include <linux/unistd.h>
 #include <stdio.h>
-#include <getopt.h>
 #include <stdlib.h>
 
 #if __GNU_LIBRARY__ < 5
@@ -34,7 +33,15 @@ static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
 # include <sys/klog.h>
 #endif
 
-static const char dmesg_usage[] = "dmesg [-c] [-n level] [-s bufsize]\n";
+static const char dmesg_usage[] = "dmesg [-c] [-n LEVEL] [-s SIZE]\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\nPrints or controls the kernel ring buffer\n\n"
+       "Options:\n"
+       "\t-c\t\tClears the ring buffer's contents after printing\n"
+       "\t-n LEVEL\tSets console logging level\n"
+       "\t-s SIZE\t\tUse a buffer of size SIZE\n"
+#endif
+       ;
 
 int dmesg_main(int argc, char **argv)
 {