. Started with CHANGES file
. Skip newline when reading in klog messages
This commit is contained in:
parent
263b17247e
commit
8440db2b28
3
CHANGES
Normal file
3
CHANGES
Normal file
@ -0,0 +1,3 @@
|
||||
Version 1.4
|
||||
|
||||
. Skip newline when reading in klog messages
|
5
klogd.c
5
klogd.c
@ -213,6 +213,9 @@
|
||||
* Shortened LOG_LINE_LENGTH in order to get long lines splitted
|
||||
* up earlier and syslogd has a better chance concatenating them
|
||||
* together again.
|
||||
*
|
||||
* Sat Aug 21 12:27:02 CEST 1999: Martin Schulze <joey@infodrom.north.de>
|
||||
* Skip newline when reading in messages.
|
||||
*/
|
||||
|
||||
|
||||
@ -695,7 +698,7 @@ static void LogLine(char *ptr, int len)
|
||||
|
||||
if( *ptr == '\n' ) /* newline */
|
||||
{
|
||||
*line++ = *ptr++; /* copy it in */
|
||||
ptr++; /* skip newline */
|
||||
space -= 1;
|
||||
len -= 1;
|
||||
|
||||
|
2
syslog.c
2
syslog.c
@ -103,7 +103,7 @@ vsyslog(pri, fmt, ap)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user