Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/rbootd Use proper format string



details:   https://anonhg.NetBSD.org/src/rev/cc0524267a88
branches:  trunk
changeset: 765344:cc0524267a88
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 13:19:55 2011 +0000

description:
Use proper format string

diffstat:

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

diffs (27 lines):

diff -r c7f6c4257901 -r cc0524267a88 usr.sbin/rbootd/rbootd.c
--- a/usr.sbin/rbootd/rbootd.c  Tue May 24 13:08:16 2011 +0000
+++ b/usr.sbin/rbootd/rbootd.c  Tue May 24 13:19:55 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rbootd.c,v 1.22 2011/02/08 20:20:28 rmind Exp $        */
+/*     $NetBSD: rbootd.c,v 1.23 2011/05/24 13:19:55 joerg Exp $        */
 
 /*
  * Copyright (c) 1988, 1992 The University of Utah and the Center
@@ -52,7 +52,7 @@
 #if 0
 static char sccsid[] = "@(#)rbootd.c   8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: rbootd.c,v 1.22 2011/02/08 20:20:28 rmind Exp $");
+__RCSID("$NetBSD: rbootd.c,v 1.23 2011/05/24 13:19:55 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -151,7 +151,7 @@
                if ((IntfName = BpfGetIntfName(&errmsg)) == NULL) {
                        /* backslash to avoid trigraph ??) */
                        syslog(LOG_NOTICE, "restarted (?\?)");
-                       syslog(LOG_ERR, errmsg);
+                       syslog(LOG_ERR, "%s", errmsg);
                        Exit(0);
                }
        }



Home | Main Index | Thread Index | Old Index