[rtems commit] powerpc/new-exceptions/bspsupport/ppc_exc_print.c: Fix printf() format warnings

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Mon Apr 24 11:17:41 2017 -0500

powerpc/new-exceptions/bspsupport/ppc_exc_print.c: Fix printf() format warnings

---

 c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c
index a0d9c1d..13b7fdb 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_print.c
@@ -187,8 +187,8 @@ void _CPU_Exception_frame_print(const CPU_Exception_frame *excPtr)
     int i;
     int j;
 
-    printk(" VSCR = 0x%08x\n", excPtr->VSCR);
-    printk("VRSAVE = 0x%08x\n", excPtr->VRSAVE);
+    printk(" VSCR = 0x%08" PRIx32 "\n", excPtr->VSCR);
+    printk("VRSAVE = 0x%08" PRIx32 "\n", excPtr->VRSAVE);
 
     for (i = 0; i < 32; ++i) {
       printk("  V%02i = 0x", i);



More information about the vc mailing list