From 75fc27ad394944e226b13e5bb869b7bb680a78e3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 26 Jul 2016 07:54:05 +0200 Subject: score: Fix printk() format specifiers --- cpukit/score/cpu/arm/arm_exc_handler_high.c | 7 +++++-- 1 file 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 #include +#include + #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"); -- cgit v1.2.3