summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>2006-04-15 02:52:41 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>2006-04-15 02:52:41 +0000
commite283eb5dccbe91011ea7295742b8da443b784500 (patch)
tree67af7a98f7ef1305102cc52587dd092080a862e6 /sys
parent8daf5492451d797524abc393197b71eb465ebfff (diff)
Print out trap number as well as string
representation. Ok tom@ quite some time ago.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/trap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index d7662211ac1..25c0fe7a0e3 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.72 2005/10/26 20:32:59 marco Exp $ */
+/* $OpenBSD: trap.c,v 1.73 2006/04/15 02:52:40 weingart Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -259,7 +259,8 @@ trap(frame)
return;
#endif
if (frame.tf_trapno < trap_types)
- printf("fatal %s", trap_type[frame.tf_trapno]);
+ printf("fatal %s (%d)", trap_type[frame.tf_trapno],
+ frame.tf_trapno);
else
printf("unknown trap %d", frame.tf_trapno);
printf(" in %s mode\n", (type & T_USER) ? "user" : "supervisor");