diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-09 07:54:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-06-09 07:54:45 +0200 |
commit | 6081ef31aef6fc236c3c4c60236dd313dfe21bcd (patch) | |
tree | 5610107031157dd58e4c34c04de6163026c17b89 /c/src/libchip/network/if_fxp.c | |
parent | spcpuset01: Update due to CPU_CMP() changes (diff) | |
download | rtems-6081ef31aef6fc236c3c4c60236dd313dfe21bcd.tar.bz2 |
if_fxp: Include missing <inttypes.h>
Fix format warnings.
Diffstat (limited to '')
-rw-r--r-- | c/src/libchip/network/if_fxp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/c/src/libchip/network/if_fxp.c b/c/src/libchip/network/if_fxp.c index 51ed64c81a..89df3ed6e3 100644 --- a/c/src/libchip/network/if_fxp.c +++ b/c/src/libchip/network/if_fxp.c @@ -63,6 +63,7 @@ #include <rtems/error.h> #include <rtems/rtems_bsdnet.h> #include <bsp.h> +#include <inttypes.h> #include <errno.h> #include <sys/param.h> @@ -938,11 +939,11 @@ fxp_stats(struct fxp_softc *sc) { struct ifnet *ifp = &sc->sc_if; - printf (" Output packets:%-8lu", ifp->if_opackets); - printf (" Collisions:%-8lu", ifp->if_collisions); - printf (" Output errors:%-8lu\n", ifp->if_oerrors); - printf (" Input packets:%-8lu", ifp->if_ipackets); - printf (" Input errors:%-8lu\n", ifp->if_ierrors); + printf (" Output packets:%-8" PRIu64, ifp->if_opackets); + printf (" Collisions:%-8" PRIu64, ifp->if_collisions); + printf (" Output errors:%-8" PRIu64 "\n", ifp->if_oerrors); + printf (" Input packets:%-8" PRIu64, ifp->if_ipackets); + printf (" Input errors:%-8" PRIu64 "\n", ifp->if_ierrors); } static void |