summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-17 01:16:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-17 01:16:35 +0000
commit766c15b71baf632b828e773a4d547131d3f4ac3a (patch)
tree547c7ee6e145d101169d0ecbc94b9a85700e9309
parent0887157ba75e599823360a4957947df0647401cb (diff)
do not use %:
-rw-r--r--sys/arch/alpha/alpha/trap.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/alpha/alpha/trap.c b/sys/arch/alpha/alpha/trap.c
index 5fb1963282f..b564d95ad88 100644
--- a/sys/arch/alpha/alpha/trap.c
+++ b/sys/arch/alpha/alpha/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.15 1997/07/24 05:57:53 niklas Exp $ */
+/* $OpenBSD: trap.c,v 1.16 1997/11/17 01:16:34 deraadt Exp $ */
/* $NetBSD: trap.c,v 1.19 1996/11/27 01:28:30 cgd Exp $ */
/*
@@ -911,7 +911,7 @@ unaligned_fixup(va, opcode, reg, p)
type = tab[opcode - 0x20].type;
size = tab[opcode - 0x20].size;
} else {
- type = "0x%lx";
+ type = NULL;
size = 0;
}
@@ -929,9 +929,13 @@ unaligned_fixup(va, opcode, reg, p)
* If we're supposed to be noisy, squawk now.
*/
if (doprint) {
- uprintf("pid %d (%s): unaligned access: va=0x%lx pc=0x%lx ra=0x%lx op=%:\n",
+ uprintf("pid %d (%s): unaligned access: va=0x%lx pc=0x%lx ra=0x%lx op=",
p->p_pid, p->p_comm, va, p->p_md.md_tf->tf_regs[FRAME_PC],
- p->p_md.md_tf->tf_regs[FRAME_PC], type, opcode);
+ p->p_md.md_tf->tf_regs[FRAME_PC]);
+ if (type)
+ uprintf("%s\n", type);
+ else
+ uprintf("%#lx\n", opcode);
}
/*