[rtems commit] LEON3: spurious trap handler print out trap in hex instead

gedare at rtems.org gedare at rtems.org
Wed Mar 21 16:36:17 UTC 2012


Module:    rtems
Branch:    master
Commit:    b4dfce9b7a27d52fbc53efd555c7e507ef726965
Changeset: http://git.rtems.org/rtems/commit/?id=b4dfce9b7a27d52fbc53efd555c7e507ef726965

Author:    Daniel Hellstrom <daniel at gaisler.com>
Date:      Mon Feb  6 15:15:47 2012 +0100

LEON3: spurious trap handler print out trap in hex instead

Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>

---

 c/src/lib/libbsp/sparc/leon3/startup/spurious.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon3/startup/spurious.c b/c/src/lib/libbsp/sparc/leon3/startup/spurious.c
index 98e04ab..a0e11c4 100644
--- a/c/src/lib/libbsp/sparc/leon3/startup/spurious.c
+++ b/c/src/lib/libbsp/sparc/leon3/startup/spurious.c
@@ -38,7 +38,7 @@ rtems_isr bsp_spurious_handler(
 
   real_trap = SPARC_REAL_TRAP_NUMBER(trap);
 
-  printk( "Unexpected trap (%2d) at address 0x%08x\n", real_trap, isf->tpc);
+  printk( "Unexpected trap (0x%02x) at address 0x%08x\n", real_trap, isf->tpc);
 
   switch (real_trap) {
 




More information about the vc mailing list