[rtems commit] score/aarch64: Resolve warning in exception dump

Joel Sherrill joel at rtems.org
Tue Nov 24 14:01:26 UTC 2020


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

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Wed Nov 18 16:36:38 2020 -0600

score/aarch64: Resolve warning in exception dump

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 cd919c3..59b5d06 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,



More information about the vc mailing list