Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/syslogd When reporting an error before daemonizing,...



details:   https://anonhg.NetBSD.org/src/rev/931ae2d54618
branches:  trunk
changeset: 939759:931ae2d54618
user:      gson <gson%NetBSD.org@localhost>
date:      Tue Sep 29 14:08:43 2020 +0000

description:
When reporting an error before daemonizing, prefix the error message
with the program name.

diffstat:

 usr.sbin/syslogd/syslogd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ed7c22c17457 -r 931ae2d54618 usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c        Tue Sep 29 12:04:48 2020 +0000
+++ b/usr.sbin/syslogd/syslogd.c        Tue Sep 29 14:08:43 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syslogd.c,v 1.132 2019/12/26 04:53:12 msaitoh Exp $    */
+/*     $NetBSD: syslogd.c,v 1.133 2020/09/29 14:08:43 gson Exp $       */
 
 /*
  * Copyright (c) 1983, 1988, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)syslogd.c  8.3 (Berkeley) 4/4/94";
 #else
-__RCSID("$NetBSD: syslogd.c,v 1.132 2019/12/26 04:53:12 msaitoh Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.133 2020/09/29 14:08:43 gson Exp $");
 #endif
 #endif /* not lint */
 
@@ -2881,7 +2881,7 @@
        if (!daemonized && Debug)
                DPRINTF(D_MISC, "%s\n", outbuf);
        if (!daemonized && !Debug)
-               printf("%s\n", outbuf);
+               printf("%s: %s\n", getprogname(), outbuf);
 
        logerror_running = 0;
 }



Home | Main Index | Thread Index | Old Index