summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-04-21 10:42:30 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-05-26 17:33:30 +0200
commit24b46333ddaa742732761f2607c4bf94c9268456 (patch)
treee3ac92856d66d05cb5ea48d17592bf0b09e7ec95 /zebra
parenttests: fix warnings (diff)
downloadfrr-24b46333ddaa742732761f2607c4bf94c9268456.tar.xz
frr-24b46333ddaa742732761f2607c4bf94c9268456.zip
zebra: fix NetBSD interface stats printf
"format '%qu' expects type 'long long unsigned int', but argument 3 has type '__uint64_t'" Move to %llu, which is more standard. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit 193e78f2460a537695e34368a29fc5cd02e4e1f5)
Diffstat (limited to 'zebra')
-rw-r--r--zebra/interface.c41
1 files changed, 23 insertions, 18 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 85867264d..68f7ba3f5 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -1132,24 +1132,29 @@ if_dump_vty (struct vty *vty, struct interface *ifp)
#ifdef HAVE_NET_RT_IFLIST
#if defined (__bsdi__) || defined (__NetBSD__)
/* Statistics print out using sysctl (). */
- vty_out (vty, " input packets %qu, bytes %qu, dropped %qu,"
- " multicast packets %qu%s",
- ifp->stats.ifi_ipackets, ifp->stats.ifi_ibytes,
- ifp->stats.ifi_iqdrops, ifp->stats.ifi_imcasts,
- VTY_NEWLINE);
-
- vty_out (vty, " input errors %qu%s",
- ifp->stats.ifi_ierrors, VTY_NEWLINE);
-
- vty_out (vty, " output packets %qu, bytes %qu, multicast packets %qu%s",
- ifp->stats.ifi_opackets, ifp->stats.ifi_obytes,
- ifp->stats.ifi_omcasts, VTY_NEWLINE);
-
- vty_out (vty, " output errors %qu%s",
- ifp->stats.ifi_oerrors, VTY_NEWLINE);
-
- vty_out (vty, " collisions %qu%s",
- ifp->stats.ifi_collisions, VTY_NEWLINE);
+ vty_out (vty, " input packets %llu, bytes %llu, dropped %llu,"
+ " multicast packets %llu%s",
+ (unsigned long long)ifp->stats.ifi_ipackets,
+ (unsigned long long)ifp->stats.ifi_ibytes,
+ (unsigned long long)ifp->stats.ifi_iqdrops,
+ (unsigned long long)ifp->stats.ifi_imcasts,
+ VTY_NEWLINE);
+
+ vty_out (vty, " input errors %llu%s",
+ (unsigned long long)ifp->stats.ifi_ierrors, VTY_NEWLINE);
+
+ vty_out (vty, " output packets %llu, bytes %llu,"
+ " multicast packets %llu%s",
+ (unsigned long long)ifp->stats.ifi_opackets,
+ (unsigned long long)ifp->stats.ifi_obytes,
+ (unsigned long long)ifp->stats.ifi_omcasts,
+ VTY_NEWLINE);
+
+ vty_out (vty, " output errors %llu%s",
+ (unsigned long long)ifp->stats.ifi_oerrors, VTY_NEWLINE);
+
+ vty_out (vty, " collisions %llu%s",
+ (unsigned long long)ifp->stats.ifi_collisions, VTY_NEWLINE);
#else
/* Statistics print out using sysctl (). */
vty_out (vty, " input packets %lu, bytes %lu, dropped %lu,"