summaryrefslogtreecommitdiffstats
path: root/sys/compat/linprocfs/linprocfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linprocfs/linprocfs.c')
-rw-r--r--sys/compat/linprocfs/linprocfs.c51
1 files changed, 26 insertions, 25 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
index 04281b0..cb0f3b9 100644
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -1131,31 +1131,32 @@ linprocfs_donetdev(PFS_FILL_ARGS)
TAILQ_FOREACH(ifp, &V_ifnet, if_link) {
linux_ifname(ifp, ifname, sizeof ifname);
sbuf_printf(sb, "%6.6s: ", ifname);
- sbuf_printf(sb, "%7lu %7lu %4lu %4lu %4lu %5lu %10lu %9lu ",
- ifp->if_ibytes, /* rx_bytes */
- ifp->if_ipackets, /* rx_packets */
- ifp->if_ierrors, /* rx_errors */
- ifp->if_iqdrops, /* rx_dropped +
- * rx_missed_errors */
- 0UL, /* rx_fifo_errors */
- 0UL, /* rx_length_errors +
- * rx_over_errors +
- * rx_crc_errors +
- * rx_frame_errors */
- 0UL, /* rx_compressed */
- ifp->if_imcasts); /* multicast, XXX-BZ rx only? */
- sbuf_printf(sb, "%8lu %7lu %4lu %4lu %4lu %5lu %7lu %10lu\n",
- ifp->if_obytes, /* tx_bytes */
- ifp->if_opackets, /* tx_packets */
- ifp->if_oerrors, /* tx_errors */
- 0UL, /* tx_dropped */
- 0UL, /* tx_fifo_errors */
- ifp->if_collisions, /* collisions */
- 0UL, /* tx_carrier_errors +
- * tx_aborted_errors +
- * tx_window_errors +
- * tx_heartbeat_errors */
- 0UL); /* tx_compressed */
+ sbuf_printf(sb, "%7ju %7ju %4ju %4ju %4lu %5lu %10lu %9ju ",
+ (uintmax_t )ifp->if_ibytes, /* rx_bytes */
+ (uintmax_t )ifp->if_ipackets, /* rx_packets */
+ (uintmax_t )ifp->if_ierrors, /* rx_errors */
+ (uintmax_t )ifp->if_iqdrops, /* rx_dropped +
+ * rx_missed_errors */
+ 0UL, /* rx_fifo_errors */
+ 0UL, /* rx_length_errors +
+ * rx_over_errors +
+ * rx_crc_errors +
+ * rx_frame_errors */
+ 0UL, /* rx_compressed */
+ (uintmax_t )ifp->if_imcasts); /* multicast,
+ * XXX-BZ rx only? */
+ sbuf_printf(sb, "%8ju %7ju %4ju %4lu %4lu %5ju %7lu %10lu\n",
+ (uintmax_t )ifp->if_obytes, /* tx_bytes */
+ (uintmax_t )ifp->if_opackets, /* tx_packets */
+ (uintmax_t )ifp->if_oerrors, /* tx_errors */
+ 0UL, /* tx_dropped */
+ 0UL, /* tx_fifo_errors */
+ (uintmax_t )ifp->if_collisions, /* collisions */
+ 0UL, /* tx_carrier_errors +
+ * tx_aborted_errors +
+ * tx_window_errors +
+ * tx_heartbeat_errors*/
+ 0UL); /* tx_compressed */
}
IFNET_RUNLOCK();
CURVNET_RESTORE();
OpenPOWER on IntegriCloud