summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/score/cpu/arm/arm_exc_handler_high.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/score/cpu/arm/arm_exc_handler_high.c b/cpukit/score/cpu/arm/arm_exc_handler_high.c
index 27500f1824..493d99329a 100644
--- a/cpukit/score/cpu/arm/arm_exc_handler_high.c
+++ b/cpukit/score/cpu/arm/arm_exc_handler_high.c
@@ -35,6 +35,8 @@
#include <rtems/score/percpu.h>
#include <rtems/score/cpu.h>
+#include <inttypes.h>
+
#ifdef ARM_MULTILIB_ARCH_V4
static void _defaultExcHandler (CPU_Exception_frame *ctx)
@@ -42,8 +44,9 @@ static void _defaultExcHandler (CPU_Exception_frame *ctx)
printk("\n\r");
printk("----------------------------------------------------------\n\r");
#if 1
- printk("Exception 0x%x caught at PC 0x%x by thread %d\n",
- ctx->vector, ctx->register_lr - 4,
+ printk("Exception 0x%x caught at PC 0x%" PRIxPTR
+ " by thread 0x%" PRIx32 "\n",
+ ctx->vector, (uintptr_t) ctx->register_lr - 4,
_Thread_Executing->Object.id);
#endif
printk("----------------------------------------------------------\n\r");