aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-07-31 15:25:00 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-07-31 15:25:00 +0200
commite8073519d8d851d5f7e7c1fde8c9b9e65c4ab458 (patch)
tree784632f6297651e0b831a6b779f1767493fbfe28
parent54fdabda3b953087f669bfcba99b9ae3b0c09fec (diff)
downloadbusybox-w32-e8073519d8d851d5f7e7c1fde8c9b9e65c4ab458.tar.gz
busybox-w32-e8073519d8d851d5f7e7c1fde8c9b9e65c4ab458.tar.bz2
busybox-w32-e8073519d8d851d5f7e7c1fde8c9b9e65c4ab458.zip
klogd: better help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--sysklogd/klogd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index 728cc8d38..a1552ed13 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -53,7 +53,7 @@
53//usage:#define klogd_trivial_usage 53//usage:#define klogd_trivial_usage
54//usage: "[-c N] [-n]" 54//usage: "[-c N] [-n]"
55//usage:#define klogd_full_usage "\n\n" 55//usage:#define klogd_full_usage "\n\n"
56//usage: "Kernel logger\n" 56//usage: "Log kernel messages to syslog\n"
57//usage: "\n -c N Print to console messages more urgent than prio N (1-8)" 57//usage: "\n -c N Print to console messages more urgent than prio N (1-8)"
58//usage: "\n -n Run in foreground" 58//usage: "\n -n Run in foreground"
59 59
@@ -85,6 +85,7 @@ static void klogd_setloglevel(int lvl)
85 85
86static int klogd_read(char *bufp, int len) 86static int klogd_read(char *bufp, int len)
87{ 87{
88 /* "2 -- Read from the log." */
88 return klogctl(2, bufp, len); 89 return klogctl(2, bufp, len);
89} 90}
90# define READ_ERROR "klogctl(2) error" 91# define READ_ERROR "klogctl(2) error"
@@ -238,7 +239,6 @@ int klogd_main(int argc UNUSED_PARAM, char **argv)
238 int priority; 239 int priority;
239 char *start; 240 char *start;
240 241
241 /* "2 -- Read from the log." */
242 start = log_buffer + used; 242 start = log_buffer + used;
243 n = klogd_read(start, KLOGD_LOGBUF_SIZE-1 - used); 243 n = klogd_read(start, KLOGD_LOGBUF_SIZE-1 - used);
244 if (n < 0) { 244 if (n < 0) {