[PATCH] score/aarch64: Resolve warning in exception dump

Kinsey Moore kinsey.moore at oarcorp.com
Mon Nov 23 16:22:52 UTC 2020


This resolves a warning in the exception frame dump for AArch64 relating
to a missized printf format specifier.
---
 cpukit/score/cpu/aarch64/aarch64-exception-frame-print.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/score/cpu/aarch64/aarch64-exception-frame-print.c b/cpukit/score/cpu/aarch64/aarch64-exception-frame-print.c
index cd919c3214..59b5d06032 100644
--- a/cpukit/score/cpu/aarch64/aarch64-exception-frame-print.c
+++ b/cpukit/score/cpu/aarch64/aarch64-exception-frame-print.c
@@ -65,7 +65,7 @@ void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
     "X11  = 0x%016" PRIx64  " X28  = 0x%016" PRIx64 "\n"
     "X12  = 0x%016" PRIx64  " FP   = 0x%016" PRIx64 "\n"
     "X13  = 0x%016" PRIx64  " LR   = 0x%016" PRIxPTR "\n"
-    "X14  = 0x%016" PRIx64  " SP   = 0x%016" PRIx64 "\n"
+    "X14  = 0x%016" PRIx64  " SP   = 0x%016" PRIxPTR "\n"
     "X15  = 0x%016" PRIx64  " PC   = 0x%016" PRIxPTR "\n"
     "X16  = 0x%016" PRIx64  " DAIF = 0x%016" PRIx64 "\n"
     "VEC  = 0x%016" PRIxPTR " CPSR = 0x%016" PRIx64 "\n"
@@ -84,7 +84,7 @@ void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
     frame->register_x11, frame->register_x28,
     frame->register_x12, frame->register_fp,
     frame->register_x13, (intptr_t)frame->register_lr,
-    frame->register_x14, frame->register_sp,
+    frame->register_x14, (intptr_t)frame->register_sp,
     frame->register_x15, (intptr_t)frame->register_pc,
     frame->register_x16, frame->register_daif,
     (intptr_t) frame->vector, frame->register_cpsr,
-- 
2.20.1



More information about the devel mailing list