[rtems commit] moxie/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:    f6bd41e9abfbeca29b22d53522fced231154ad0c
Changeset: http://git.rtems.org/rtems/commit/?id=f6bd41e9abfbeca29b22d53522fced231154ad0c

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

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

---

 cpukit/score/cpu/moxie/rtems/score/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/moxie/rtems/score/cpu.h b/cpukit/score/cpu/moxie/rtems/score/cpu.h
index a8b2263..a3aac9e 100644
--- a/cpukit/score/cpu/moxie/rtems/score/cpu.h
+++ b/cpukit/score/cpu/moxie/rtems/score/cpu.h
@@ -625,7 +625,7 @@ uint32_t   _CPU_ISR_Get_level( void );
  *  XXX
  */
 #define _CPU_Fatal_halt( _source, _error ) \
-        printk("Fatal Error %d.%d Halted\n",_source,_error); \
+        printk("Fatal Error %d.%lu Halted\n",_source,_error); \
         for(;;)
 
 /* end of Fatal Error manager macros */



More information about the vc mailing list