Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rtadvd When sending log messages to stderr, append ...
details: https://anonhg.NetBSD.org/src/rev/2c7e8737ad47
branches: trunk
changeset: 828043:2c7e8737ad47
user: kre <kre%NetBSD.org@localhost>
date: Sat Nov 25 02:37:04 2017 +0000
description:
When sending log messages to stderr, append the \n that syslog does not need.
diffstat:
usr.sbin/rtadvd/rtadvd.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 1001ff191a53 -r 2c7e8737ad47 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c Fri Nov 24 23:42:36 2017 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c Sat Nov 25 02:37:04 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtadvd.c,v 1.58 2017/11/06 19:12:23 joerg Exp $ */
+/* $NetBSD: rtadvd.c,v 1.59 2017/11/25 02:37:04 kre Exp $ */
/* $KAME: rtadvd.c,v 1.92 2005/10/17 14:40:02 suz Exp $ */
/*
@@ -1864,6 +1864,7 @@
buf[cur] = '\0';
}
strlcat(buf, fmt, len);
+ strlcat(buf, "\n", len); /* syslog does not need \n, printf does */
return buf;
}
Home |
Main Index |
Thread Index |
Old Index