Florian La Roche (florian@suse.de)
Thu, 28 Jan 1999 11:20:35 +0100
I have several times submitted the klogd.c patch. With this patch, klofd can
be used instead of dmesg to store the initial messages on bootup.
Florian La Roche
--- klogd.c
+++ klogd.c 1999/01/28 09:53:59
@@ -690,11 +690,11 @@
if( *ptr == '\n' ) /* newline */
{
- *line++ = *ptr++; /* copy it in */
+ ptr++; /* copy it in */
space -= 1;
len -= 1;
- *line = 0; /* force null terminator */
+ *line++ = 0; /* force null terminator */
Syslog( LOG_INFO, line_buff );
line = line_buff;
space = sizeof(line_buff)-1;
--- syslog.c
+++ syslog.c 1999/01/28 09:53:59
@@ -103,7 +103,7 @@
if (!LOG_MASK(LOG_PRI(pri)) || (pri &~ (LOG_PRIMASK|LOG_FACMASK)))
return;
if (LogFile < 0 || !connected)
- openlog(LogTag, LogStat | LOG_NDELAY, 0);
+ openlog(LogTag, LogStat | LOG_NDELAY, LogFacility);
/* set default facility if none specified */
if ((pri & LOG_FACMASK) == 0)
This archive was generated by hypermail 2.0b3 on Sat Aug 21 1999 - 12:25:14 CEST