From 4409bdc01ee77b351653478c1de313f572bfd51d Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 12 Aug 2022 08:31:06 +0000 Subject: [PATCH] use string literal for format string ok miod@ --- sys/arch/m88k/m88k/trap.c | 4 ++-- 1 file 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*/ -- 2.20.1