Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Panic takes a format string.



details:   https://anonhg.NetBSD.org/src/rev/4d3065347c56
branches:  trunk
changeset: 810967:4d3065347c56
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Oct 04 08:15:46 2015 +0000

description:
Panic takes a format string.

diffstat:

 sys/arch/sparc/sparc/autoconf.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 54c81a9a56a9 -r 4d3065347c56 sys/arch/sparc/sparc/autoconf.c
--- a/sys/arch/sparc/sparc/autoconf.c   Sun Oct 04 07:59:47 2015 +0000
+++ b/sys/arch/sparc/sparc/autoconf.c   Sun Oct 04 08:15:46 2015 +0000
@@ -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 @@
                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 @@
 
                if (config_found(dev, (void *)&ma, mbprint) == NULL) {
                        if (ssp->flags & BS_OPTIONAL) continue;
-                       panic(sp);
+                       panic("%s", sp);
                }
        }
 



Home | Main Index | Thread Index | Old Index