[rtems commit] epiphany/rtems/score/cpu.h: Fix printf() format warning

Joel Sherrill joel at rtems.org
Tue Apr 25 23:14:15 UTC 2017


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Tue Apr 25 13:39:50 2017 -0500

epiphany/rtems/score/cpu.h: Fix printf() format warning

---

 cpukit/score/cpu/epiphany/rtems/score/cpu.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/epiphany/rtems/score/cpu.h b/cpukit/score/cpu/epiphany/rtems/score/cpu.h
index 020d949..34ac8ae 100644
--- a/cpukit/score/cpu/epiphany/rtems/score/cpu.h
+++ b/cpukit/score/cpu/epiphany/rtems/score/cpu.h
@@ -638,8 +638,10 @@ void _CPU_Context_Initialize(
  *
  */
 
+#include <inttypes.h>
+
 #define _CPU_Fatal_halt(_source, _error ) \
-          printk("Fatal Error %d.%d Halted\n",_source, _error); \
+          printk("Fatal Error %d.%" PRIu32 " Halted\n",_source, _error); \
           asm("trap 3" :: "r" (_error)); \
           for(;;)
 



More information about the vc mailing list