Module Name: src Committed By: joerg Date: Thu Feb 20 01:40:42 UTC 2014
Modified Files: src/sys/arch/sparc64/sparc64: trap.c Log Message: Use a format string. To generate a diff of this commit: cvs rdiff -u -r1.179 -r1.180 src/sys/arch/sparc64/sparc64/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/sparc64/sparc64/trap.c diff -u src/sys/arch/sparc64/sparc64/trap.c:1.179 src/sys/arch/sparc64/sparc64/trap.c:1.180 --- src/sys/arch/sparc64/sparc64/trap.c:1.179 Sun Sep 15 14:49:50 2013 +++ src/sys/arch/sparc64/sparc64/trap.c Thu Feb 20 01:40:42 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.179 2013/09/15 14:49:50 martin Exp $ */ +/* $NetBSD: trap.c,v 1.180 2014/02/20 01:40:42 joerg Exp $ */ /* * Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved. @@ -50,7 +50,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.179 2013/09/15 14:49:50 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.180 2014/02/20 01:40:42 joerg Exp $"); #include "opt_ddb.h" #include "opt_multiprocessor.h" @@ -577,7 +577,7 @@ dopanic: printf(" npc=%lx pstate=%s\n", (long)tf->tf_npc, sb); DEBUGGER(type, tf); - panic(type < N_TRAP_TYPES ? trap_type[type] : T); + panic("%s", type < N_TRAP_TYPES ? trap_type[type] : T); } /* NOTREACHED */ }