diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/logger.c | 9 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index db6d9bfc5..118a5ded0 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c | |||
@@ -48,14 +48,17 @@ extern CODE facilitynames[]; | |||
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | static const char logger_usage[] = | 50 | static const char logger_usage[] = |
51 | "logger [OPTION]... [MESSAGE]\n\n" | 51 | "logger [OPTION]... [MESSAGE]\n" |
52 | "Write MESSAGE to the system log. If MESSAGE is '-', log stdin.\n\n" | 52 | #ifndef BB_FEATURE_TRIVIAL_HELP |
53 | "\nWrite MESSAGE to the system log. If MESSAGE is '-', log stdin.\n\n" | ||
53 | "Options:\n" | 54 | "Options:\n" |
54 | "\t-s\tLog to stderr as well as the system log.\n" | 55 | "\t-s\tLog to stderr as well as the system log.\n" |
55 | "\t-t\tLog using the specified tag (defaults to user name).\n" | 56 | "\t-t\tLog using the specified tag (defaults to user name).\n" |
56 | 57 | ||
57 | "\t-p\tEnter the message with the specified priority.\n" | 58 | "\t-p\tEnter the message with the specified priority.\n" |
58 | "\t\tThis may be numerical or a ``facility.level'' pair.\n"; | 59 | "\t\tThis may be numerical or a ``facility.level'' pair.\n" |
60 | #endif | ||
61 | ; | ||
59 | 62 | ||
60 | 63 | ||
61 | /* Decode a symbolic name to a numeric value | 64 | /* Decode a symbolic name to a numeric value |
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index cacb629e9..faa6f15e9 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -64,8 +64,9 @@ static int MarkInterval = 20 * 60; | |||
64 | static char LocalHostName[32]; | 64 | static char LocalHostName[32]; |
65 | 65 | ||
66 | static const char syslogd_usage[] = | 66 | static const char syslogd_usage[] = |
67 | "syslogd [OPTION]...\n\n" | 67 | "syslogd [OPTION]...\n" |
68 | "Linux system and kernel (provides klogd) logging utility.\n" | 68 | #ifndef BB_FEATURE_TRIVIAL_HELP |
69 | "\nLinux system and kernel (provides klogd) logging utility.\n" | ||
69 | "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n" | 70 | "Note that this version of syslogd/klogd ignores /etc/syslog.conf.\n\n" |
70 | "Options:\n" | 71 | "Options:\n" |
71 | "\t-m\tChange the mark timestamp interval. default=20min. 0=off\n" | 72 | "\t-m\tChange the mark timestamp interval. default=20min. 0=off\n" |
@@ -73,7 +74,9 @@ static const char syslogd_usage[] = | |||
73 | #ifdef BB_KLOGD | 74 | #ifdef BB_KLOGD |
74 | "\t-K\tDo not start up the klogd process (by default syslogd spawns klogd).\n" | 75 | "\t-K\tDo not start up the klogd process (by default syslogd spawns klogd).\n" |
75 | #endif | 76 | #endif |
76 | "\t-O\tSpecify an alternate log file. default=/var/log/messages\n"; | 77 | "\t-O\tSpecify an alternate log file. default=/var/log/messages\n" |
78 | #endif | ||
79 | ; | ||
77 | 80 | ||
78 | /* Note: There is also a function called "message()" in init.c */ | 81 | /* Note: There is also a function called "message()" in init.c */ |
79 | /* Print a message to the log file. */ | 82 | /* Print a message to the log file. */ |