Module Name: src
Committed By: joerg
Date: Sun Oct 4 08:15:46 UTC 2015
Modified Files:
src/sys/arch/sparc/sparc: autoconf.c
Log Message:
Panic takes a format string.
To generate a diff of this commit:
cvs rdiff -u -r1.258 -r1.259 src/sys/arch/sparc/sparc/autoconf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/sparc/autoconf.c
diff -u src/sys/arch/sparc/sparc/autoconf.c:1.258 src/sys/arch/sparc/sparc/autoconf.c:1.259
--- src/sys/arch/sparc/sparc/autoconf.c:1.258 Tue Aug 12 13:53:49 2014
+++ src/sys/arch/sparc/sparc/autoconf.c Sun Oct 4 08:15:46 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.258 2014/08/12 13:53:49 martin Exp $ */
+/* $NetBSD: autoconf.c,v 1.259 2015/10/04 08:15:46 joerg Exp $ */
/*
* Copyright (c) 1996
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.258 2014/08/12 13:53:49 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.259 2015/10/04 08:15:46 joerg Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -1296,7 +1296,7 @@ extern struct sparc_bus_space_tag mainbu
if ((node = findnode(node0, sp)) == 0) {
if (ssp->flags & BS_OPTIONAL) continue;
printf("could not find %s in OPENPROM\n", sp);
- panic(sp);
+ panic("%s", sp);
}
memset(&ma, 0, sizeof ma);
@@ -1318,7 +1318,7 @@ extern struct sparc_bus_space_tag mainbu
if (config_found(dev, (void *)&ma, mbprint) == NULL) {
if (ssp->flags & BS_OPTIONAL) continue;
- panic(sp);
+ panic("%s", sp);
}
}