[PATCH 02/11] Using inttype macro, fix 1 format warning

Cillian O'Donnell cpodonnell8 at gmail.com
Fri Apr 7 22:37:38 UTC 2017


---
 c/src/libchip/network/dec21140.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/c/src/libchip/network/dec21140.c b/c/src/libchip/network/dec21140.c
index 3bfc91d..b76c02a 100644
--- a/c/src/libchip/network/dec21140.c
+++ b/c/src/libchip/network/dec21140.c
@@ -36,6 +36,7 @@
  */
 
 #include <rtems.h>
+#include <inttype.h>
 
 /*
  *  This driver only supports architectures with the new style
@@ -1020,7 +1021,8 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
 
 
 #ifdef DEC_DEBUG
-   printk("dec2114x : unit %d base address %08x.\n", unitNumber, sc->base );
+   printk("dec2114x : unit %d base address %" PRIu32PTR ".\n", unitNumber,
+          sc->base );
 #endif
 
 
-- 
2.7.4




More information about the devel mailing list