summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-09-28 13:02:47 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-09-28 13:02:47 +0000
commite3754c58c90da1b73c783b2c2486bbc1e96a9f12 (patch)
tree703fc36d7db7b33a74f2cde7e0dd617513036fb6 /sys/arch/sparc64
parentf7e7287d869cf38f2d380fea428fa3709dd0d641 (diff)
Don't spam the console with userland alignemnt errors.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/trap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c
index 73c1d2ca9ba..540e5320444 100644
--- a/sys/arch/sparc64/sparc64/trap.c
+++ b/sys/arch/sparc64/sparc64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.9 2001/09/20 21:29:26 jason Exp $ */
+/* $OpenBSD: trap.c,v 1.10 2001/09/28 13:02:46 art Exp $ */
/* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */
/*
@@ -767,9 +767,11 @@ badtrap:
}
#define fmt64(x) (u_int)((x)>>32), (u_int)((x))
+#ifdef DEBUG
printf("Alignment error: dsfsr=%08x:%08x dsfar=%x:%x isfsr=%08x:%08x pc=%lx\n",
fmt64(dsfsr), fmt64(dsfar), fmt64(isfsr), pc);
- printf("Alignment error: pid=%d comm=%s dsfsr=%08x:%08x dsfar=%x:%x isfsr=%08x:%08x pc=%lx\n",
+#endif
+ uprintf("Alignment error: pid=%d comm=%s dsfsr=%08x:%08x dsfar=%x:%x isfsr=%08x:%08x pc=%lx\n",
p->p_pid, p->p_comm, fmt64(dsfsr), fmt64(dsfar), fmt64(isfsr), pc);
}