[rtems commit] score/cpu/or1k/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: 03e4be12816bd6ef4522ffc3549573e8180205ad
Changeset: http://git.rtems.org/rtems/commit/?id=03e4be12816bd6ef4522ffc3549573e8180205ad
Author: Joel Sherrill <joel at rtems.org>
Date: Tue Apr 25 20:02:09 2017 -0500
score/cpu/or1k/rtems/score/cpu.h: Fix printf() format warning
---
cpukit/score/cpu/or1k/rtems/score/cpu.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cpukit/score/cpu/or1k/rtems/score/cpu.h b/cpukit/score/cpu/or1k/rtems/score/cpu.h
index 3d4a6e0..6daca10f 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(;;)
More information about the vc
mailing list