summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-25 13:39:50 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-25 13:39:50 -0500
commitfdfbb0a89f09ebb11744e641cb1ad68faf2b8d68 (patch)
treea2f12723d9d4b55d05ad5b8d2645e44b9c6bca5e
parentrtems/inttypes.h epiphany_sim/irq/irq.c: Add PRIdrtems_vector_number and use it (diff)
downloadrtems-fdfbb0a89f09ebb11744e641cb1ad68faf2b8d68.tar.bz2
epiphany/rtems/score/cpu.h: Fix printf() format warning
-rw-r--r--cpukit/score/cpu/epiphany/rtems/score/cpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/cpu/epiphany/rtems/score/cpu.h b/cpukit/score/cpu/epiphany/rtems/score/cpu.h
index 020d949586..34ac8ae6c6 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(;;)