Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.sbin/sup/source Pull up revision 1.6 (via patch, re...



details:   https://anonhg.NetBSD.org/src/rev/eabc8ddb5704
branches:  netbsd-1-4
changeset: 471114:eabc8ddb5704
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 17:02:52 2000 +0000

description:
Pull up revision 1.6 (via patch, requested by he):
  Format string cleanup.

diffstat:

 usr.sbin/sup/source/log.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 3c11759cd9cc -r eabc8ddb5704 usr.sbin/sup/source/log.c
--- a/usr.sbin/sup/source/log.c Thu Oct 19 17:02:33 2000 +0000
+++ b/usr.sbin/sup/source/log.c Thu Oct 19 17:02:52 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: log.c,v 1.3.4.1 1999/04/12 21:27:09 pk Exp $   */
+/*     $NetBSD: log.c,v 1.3.4.2 2000/10/19 17:02:52 he Exp $   */
 
 /*
  * Copyright (c) 1992 Carnegie Mellon University
@@ -88,7 +88,7 @@
        vsnprintf(buf, sizeof(buf), fmt, ap);
        va_end(ap);
        if (opened) {
-               syslog (LOG_ERR,buf);
+               syslog (LOG_ERR, "%s", buf);
                closelog ();
                exit (retval);
        }
@@ -118,7 +118,7 @@
        vsnprintf(buf, sizeof(buf), fmt, ap);
        va_end(ap);
        if (opened) {
-               syslog (LOG_ERR,buf);
+               syslog (LOG_ERR, "%s", buf);
                return;
        }
        fprintf (stderr,"SUP: %s\n",buf);
@@ -148,7 +148,7 @@
        vsnprintf(buf, sizeof(buf), fmt, ap);
        va_end(ap);
        if (opened) {
-               syslog (LOG_INFO,buf);
+               syslog (LOG_INFO, "%s", buf);
                return;
        }
        printf ("%s\n",buf);



Home | Main Index | Thread Index | Old Index