Module Name:    src
Committed By:   joerg
Date:           Sun Oct  4 08:19:40 UTC 2015

Modified Files:
        src/sys/arch/sparc/sparc: trap.c

Log Message:
panic takes a format string.


To generate a diff of this commit:
cvs rdiff -u -r1.192 -r1.193 src/sys/arch/sparc/sparc/trap.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/trap.c
diff -u src/sys/arch/sparc/sparc/trap.c:1.192 src/sys/arch/sparc/sparc/trap.c:1.193
--- src/sys/arch/sparc/sparc/trap.c:1.192	Mon Mar  2 13:53:19 2015
+++ src/sys/arch/sparc/sparc/trap.c	Sun Oct  4 08:19:40 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.c,v 1.192 2015/03/02 13:53:19 martin Exp $ */
+/*	$NetBSD: trap.c,v 1.193 2015/10/04 08:19:40 joerg Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.192 2015/03/02 13:53:19 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.193 2015/10/04 08:19:40 joerg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_svr4.h"
@@ -296,7 +296,7 @@ trap(unsigned type, int psr, int pc, str
 		write_all_windows();
 		(void) kdb_trap(type, tf);
 #endif
-		panic(type < N_TRAP_TYPES ? trap_type[type] : T);
+		panic("%s", type < N_TRAP_TYPES ? trap_type[type] : T);
 		/* NOTREACHED */
 	}
 	if ((l = curlwp) == NULL)

Reply via email to