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