syslogd,klogd: better help text
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 25 May 2011 09:58:56 +0000 (11:58 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 25 May 2011 09:58:56 +0000 (11:58 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
sysklogd/klogd.c
sysklogd/syslogd.c

index 3992081caf98daead392e3a34bcde894854a0b37..27995e57028f09733dbad1d1a0e2c56cbeb7bb26 100644 (file)
@@ -22,7 +22,7 @@
 //usage:#define klogd_full_usage "\n\n"
 //usage:       "Kernel logger\n"
 //usage:     "\nOptions:"
-//usage:     "\n       -c N    Only messages with level < N are printed to console"
+//usage:     "\n       -c N    Print to console messages more urgent than prio N (1-8)"
 //usage:     "\n       -n      Run in foreground"
 
 #include "libbb.h"
index b6f409f4139f8ec73bd58061bd3e7db8be310b01..c5c2a2e86e17ebcd041ea302f4a97c6120c1498c 100644 (file)
 //usage:#define syslogd_trivial_usage
 //usage:       "[OPTIONS]"
 //usage:#define syslogd_full_usage "\n\n"
-//usage:       "System logging utility.\n"
-//usage:       "This version of syslogd ignores /etc/syslog.conf\n"
+//usage:       "System logging utility\n"
+//usage:       IF_NOT_FEATURE_SYSLOGD_CFG(
+//usage:       "(this version of syslogd ignores /etc/syslog.conf)\n"
+//usage:       )
 //usage:     "\nOptions:"
 //usage:     "\n       -n              Run in foreground"
-//usage:     "\n       -O FILE         Log to given file (default:/var/log/messages)"
-//usage:     "\n       -l N            Set local log level"
-//usage:     "\n       -S              Smaller logging output"
+//usage:     "\n       -O FILE         Log to FILE (default:/var/log/messages)"
+//usage:     "\n       -l N            Log only messages more urgent than prio N (1-8)"
+//usage:     "\n       -S              Smaller output"
 //usage:       IF_FEATURE_ROTATE_LOGFILE(
-//usage:     "\n       -s SIZE         Max size (KB) before rotate (default:200KB, 0=off)"
-//usage:     "\n       -b N            N rotated logs to keep (default:1, max=99, 0=purge)")
+//usage:     "\n       -s SIZE         Max size (KB) before rotation (default:200KB, 0=off)"
+//usage:     "\n       -b N            N rotated logs to keep (default:1, max=99, 0=purge)"
+//usage:       )
 //usage:       IF_FEATURE_REMOTE_LOG(
 //usage:     "\n       -R HOST[:PORT]  Log to IP or hostname on PORT (default PORT=514/UDP)"
-//usage:     "\n       -L              Log locally and via network (default is network only if -R)")
+//usage:     "\n       -L              Log locally and via network (default is network only if -R)"
+//usage:       )
 //usage:       IF_FEATURE_SYSLOGD_DUP(
-//usage:     "\n       -D              Drop duplicates")
+//usage:     "\n       -D              Drop duplicates"
+//usage:       )
 //usage:       IF_FEATURE_IPC_SYSLOG(
-//usage:     "\n       -C[size(KiB)]   Log to shared mem buffer (read it using logread)")
-//usage:       IF_FEATURE_SYSLOGD_CFG(
-//usage:     "\n       -f FILE         Use FILE as config (default is /etc/syslog.conf)")
 /* NB: -Csize shouldn't have space (because size is optional) */
+//usage:     "\n       -C[size_kb]     Log to shared mem buffer (use logread to read it)"
+//usage:       )
+//usage:       IF_FEATURE_SYSLOGD_CFG(
+//usage:     "\n       -f FILE         Use FILE as config (default:/etc/syslog.conf)"
+//usage:       )
 /* //usage:  "\n       -m MIN          Minutes between MARK lines (default:20, 0=off)" */
 //usage:
 //usage:#define syslogd_example_usage