[rtems commit] if_fxp: Include missing <inttypes.h>
Sebastian Huber
sebh at rtems.org
Fri Jun 9 05:55:39 UTC 2017
Module: rtems
Branch: master
Commit: 6081ef31aef6fc236c3c4c60236dd313dfe21bcd
Changeset: http://git.rtems.org/rtems/commit/?id=6081ef31aef6fc236c3c4c60236dd313dfe21bcd
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Jun 9 07:54:45 2017 +0200
if_fxp: Include missing <inttypes.h>
Fix format warnings.
---
c/src/libchip/network/if_fxp.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/c/src/libchip/network/if_fxp.c b/c/src/libchip/network/if_fxp.c
index 51ed64c..89df3ed 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
More information about the vc
mailing list