From fdfbb0a89f09ebb11744e641cb1ad68faf2b8d68 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 25 Apr 2017 13:39:50 -0500 Subject: 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 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 + #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(;;) -- cgit v1.2.3