Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 print a trap type in hexadecimal instead of...
details: https://anonhg.NetBSD.org/src/rev/a21c8388604f
branches: trunk
changeset: 477570:a21c8388604f
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Oct 21 22:50:53 1999 +0000
description:
print a trap type in hexadecimal instead of decimal.
diffstat:
sys/arch/sh3/sh3/trap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2ba453c12761 -r a21c8388604f sys/arch/sh3/sh3/trap.c
--- a/sys/arch/sh3/sh3/trap.c Thu Oct 21 21:17:08 1999 +0000
+++ b/sys/arch/sh3/sh3/trap.c Thu Oct 21 22:50:53 1999 +0000
@@ -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 @@
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index