[rtems commit] libchip/network/dec21140.c: Use inttypes.h to fix 1 warning.

Joel Sherrill joel at rtems.org
Fri Apr 14 16:00:12 UTC 2017


Module:    rtems
Branch:    master
Commit:    52597b96ae77c7576e728cb9e210ea7fa66f03f8
Changeset: http://git.rtems.org/rtems/commit/?id=52597b96ae77c7576e728cb9e210ea7fa66f03f8

Author:    Cillian O'Donnell <cpodonnell8 at gmail.com>
Date:      Sat Apr  8 11:28:46 2017 +0100

libchip/network/dec21140.c: Use inttypes.h to fix 1 warning.

---

 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..9cbf74f 100644
--- a/c/src/libchip/network/dec21140.c
+++ b/c/src/libchip/network/dec21140.c
@@ -36,6 +36,7 @@
  */
 
 #include <rtems.h>
+#include <inttypes.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
 
 




More information about the vc mailing list