From 06c35da6af117f8c27ed16afe3915fbbc6c64de8 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 18 Sep 2002 14:23:06 +0000 Subject: patch from John Hall to change the klogd specific messages to facility LOG_SYSLOG and tidies up some of the priorities. --- sysklogd/klogd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysklogd') diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 4686a3429..f2ab5ea7e 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c @@ -55,7 +55,7 @@ static void klogd_signal(int sig) klogctl(7, NULL, 0); klogctl(0, 0, 0); /* logMessage(0, "Kernel log daemon exiting."); */ - syslog_msg(LOG_DAEMON, 0, "Kernel log daemon exiting."); + syslog_msg(LOG_SYSLOG, LOG_NOTICE, "Kernel log daemon exiting."); exit(TRUE); } @@ -76,7 +76,7 @@ static void doKlogd(void) /* "Open the log. Currently a NOP." */ klogctl(1, NULL, 0); - syslog_msg(LOG_DAEMON, 0, "klogd started: " BB_BANNER); + syslog_msg(LOG_SYSLOG, LOG_NOTICE, "klogd started: " BB_BANNER); while (1) { /* Use kernel syscalls */ @@ -90,7 +90,7 @@ static void doKlogd(void) snprintf(message, 79, "klogd: Error return from sys_sycall: %d - %s.\n", errno, strerror(errno)); - syslog_msg(LOG_DAEMON, LOG_SYSLOG | LOG_ERR, message); + syslog_msg(LOG_SYSLOG, LOG_ERR, message); exit(1); } @@ -111,7 +111,7 @@ static void doKlogd(void) } if (log_buffer[i] == '\n') { log_buffer[i] = '\0'; /* zero terminate this message */ - syslog_msg(LOG_DAEMON, LOG_KERN | priority, start); + syslog_msg(LOG_KERN, priority, start); start = &log_buffer[i + 1]; priority = LOG_INFO; } -- cgit v1.2.3