summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCillian O'Donnell <cpodonnell8@gmail.com>2017-04-08 12:25:43 +0100
committerJoel Sherrill <joel@rtems.org>2017-04-14 13:01:14 -0500
commit50b1269626e5dbb7badc8d397430b15ad7bd2387 (patch)
treeeecbe50ca788b2736ebbeb6a515a3cb058370786
parentpowerpc/haleakala/./mmu_405.c: Use inttypes.h constants removes 11 warnings. (diff)
downloadrtems-50b1269626e5dbb7badc8d397430b15ad7bd2387.tar.bz2
m68k/mrm332/./sci.c: Use inttypes.h constants removes 6 warnings.
-rw-r--r--c/src/lib/libbsp/m68k/mrm332/console/sci.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/m68k/mrm332/console/sci.c b/c/src/lib/libbsp/m68k/mrm332/console/sci.c
index 1e92d6d774..8e44f22084 100644
--- a/c/src/lib/libbsp/m68k/mrm332/console/sci.c
+++ b/c/src/lib/libbsp/m68k/mrm332/console/sci.c
@@ -87,6 +87,7 @@
#include <libchip/sersupp.h>
#include "sci.h"
#include <rtems/m68k/qsm.h>
+#include <inttypes.h>
/*#include "../misc/include/cpu332.h" */
/*****************************************************************************
@@ -1576,12 +1577,12 @@ void SciPrintStats ( void )
printk( "Current baud rate is %d bps or %d cps\r\n\n", SciBaud, SciBaud / 10 );
- printk( "SCI Uart chars in %8d\r\n", SciBytesIn );
- printk( "SCI Uart chars out %8d\r\n", SciBytesOut );
- printk( "SCI Uart framing errors %8d\r\n", SciErrorsFraming );
- printk( "SCI Uart parity errors %8d\r\n", SciErrorsParity );
- printk( "SCI Uart overrun errors %8d\r\n", SciErrorsOverrun );
- printk( "SCI Uart noise errors %8d\r\n", SciErrorsNoise );
+ printk( "SCI Uart chars in %8" PRIu32 "\r\n", SciBytesIn );
+ printk( "SCI Uart chars out %8" PRIu32 "\r\n", SciBytesOut );
+ printk( "SCI Uart framing errors %8" PRIu32 "\r\n", SciErrorsFraming );
+ printk( "SCI Uart parity errors %8" PRIu32 "\r\n", SciErrorsParity );
+ printk( "SCI Uart overrun errors %8" PRIu32 "\r\n", SciErrorsOverrun );
+ printk( "SCI Uart noise errors %8" PRIu32 "\r\n", SciErrorsNoise );
return;
}