diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-12 08:31:07 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-12 08:31:07 +0000 |
commit | 9706dc2c6c118e57bbc75c2377c1e1fa8d1fc182 (patch) | |
tree | 4e20b6d32a6720f5ff2b9351d379147bc1248452 /sys/arch/m88k | |
parent | 18b07fcd2f6b51791afeac87b0fe2a229eaaecd8 (diff) |
use string literal for format string
ok miod@
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/m88k/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c index ee542f34ba7..b1956c8ef49 100644 --- a/sys/arch/m88k/m88k/trap.c +++ b/sys/arch/m88k/m88k/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.121 2022/08/02 20:15:28 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.122 2022/08/12 08:31:06 jsg Exp $ */ /* * Copyright (c) 2004, Miodrag Vallat. * Copyright (c) 1998 Steve Murphree, Jr. @@ -156,7 +156,7 @@ panictrap(int type, struct trapframe *frame) if (panicing++ == 0) printtrap(type, frame); if ((u_int)type < trap_types) - panic(trap_type[type]); + panic("%s", trap_type[type]); else panic("trap %d", type); /*NOTREACHED*/ |