Module Name: src
Committed By: joerg
Date: Tue May 24 13:19:55 UTC 2011
Modified Files:
src/usr.sbin/rbootd: rbootd.c
Log Message:
Use proper format string
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/rbootd/rbootd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/rbootd/rbootd.c
diff -u src/usr.sbin/rbootd/rbootd.c:1.22 src/usr.sbin/rbootd/rbootd.c:1.23
--- src/usr.sbin/rbootd/rbootd.c:1.22 Tue Feb 8 20:20:28 2011
+++ src/usr.sbin/rbootd/rbootd.c Tue May 24 13:19:55 2011
@@ -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);
}
}