summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-25 20:02:09 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-25 20:02:22 -0500
commit03e4be12816bd6ef4522ffc3549573e8180205ad (patch)
tree3da73c2beddc8e3971e6bf8ab081320497bf935c /cpukit/score
parentscore/cpu/or1k/or1k-exception-frame-print.c: Fix printf() format warning (diff)
downloadrtems-03e4be12816bd6ef4522ffc3549573e8180205ad.tar.bz2
score/cpu/or1k/rtems/score/cpu.h: Fix printf() format warning
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/cpu/or1k/rtems/score/cpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/cpu/or1k/rtems/score/cpu.h b/cpukit/score/cpu/or1k/rtems/score/cpu.h
index 3d4a6e003a..6daca10f9c 100644
--- a/cpukit/score/cpu/or1k/rtems/score/cpu.h
+++ b/cpukit/score/cpu/or1k/rtems/score/cpu.h
@@ -647,8 +647,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.%" PRId32 " Halted\n",_source, _error); \
_OR1KSIM_CPU_Halt(); \
for(;;)