summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-07-26 07:54:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-07-26 07:54:05 +0200
commit75fc27ad394944e226b13e5bb869b7bb680a78e3 (patch)
treecd2024748e7285571b5c57f9356aaa1fd9b99eb2
parentscore: Format (diff)
downloadrtems-75fc27ad394944e226b13e5bb869b7bb680a78e3.tar.bz2
score: Fix printk() format specifiers
-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");