print a trap type in hexadecimal instead of decimal.
This commit is contained in:
parent
59b90d4a0e
commit
d478b71746
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: trap.c,v 1.2 1999/09/14 10:22:37 tsubai Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.3 1999/10/21 22:50:53 msaitoh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||
|
@ -212,7 +212,7 @@ trap(p1, p2, p3, p4, frame)
|
|||
else
|
||||
printf("unknown trap %x", frame.tf_trapno);
|
||||
printf(" in %s mode\n", (type & T_USER) ? "user" : "supervisor");
|
||||
printf("trap type %d spc %x ssr %x \n",
|
||||
printf("trap type %x spc %x ssr %x \n",
|
||||
type, frame.tf_spc, frame.tf_ssr);
|
||||
|
||||
panic("trap");
|
||||
|
@ -276,7 +276,7 @@ trap(p1, p2, p3, p4, frame)
|
|||
case T_ADDRESSERRR|T_USER: /* protection fault */
|
||||
case T_ADDRESSERRW|T_USER:
|
||||
case T_INVALIDSLOT|T_USER:
|
||||
printf("trap type %d spc %x ssr %x \n",
|
||||
printf("trap type %x spc %x ssr %x \n",
|
||||
type, frame.tf_spc, frame.tf_ssr);
|
||||
trapsignal(p, SIGBUS, type &~ T_USER);
|
||||
goto out;
|
||||
|
|
Loading…
Reference in New Issue