[klibc] add '\n' only when needed in ./klibc/syslog.c

Kay Sievers kay.sievers at vrfy.org
Thu Nov 18 16:26:56 PST 2004


This patch adds the newline to the syslog() string only if it doesn't
already have one. It's annoying to get a second empty log line with
every syslog() call from code that has the newline by itself.

The syslog(3) man page states:
  "A trailing newline is added when needed."

Thanks,
Kay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: klibc-syslog-01.patch
Type: text/x-patch
Size: 344 bytes
Desc: not available
Url : http://www.zytor.com/pipermail/klibc/attachments/20041118/388b5690/klibc-syslog-01.bin


More information about the klibc mailing list