diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-02 15:49:06 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-02 15:49:06 +0000 |
commit | 426c9769ea744018e36523028904cc3804ceab2f (patch) | |
tree | 0c34ef5b4c41e4a252072db1c4f4935f7127f591 | |
parent | 71b9959af277af413abd70cd333286d73d3e911e (diff) |
mrtstat members are u_long, so use %lu not %ld
-rw-r--r-- | usr.bin/netstat/mroute.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.bin/netstat/mroute.c b/usr.bin/netstat/mroute.c index 50ee1dd8734..6a457dde995 100644 --- a/usr.bin/netstat/mroute.c +++ b/usr.bin/netstat/mroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mroute.c,v 1.7 2001/11/19 19:02:15 mpech Exp $ */ +/* $OpenBSD: mroute.c,v 1.8 2002/06/02 15:49:05 itojun Exp $ */ /* $NetBSD: mroute.c,v 1.10 1996/05/11 13:51:27 mycroft Exp $ */ /* @@ -238,26 +238,26 @@ mrt_stats(mrpaddr, mstaddr) kread(mstaddr, (char *)&mrtstat, sizeof(mrtstat)); printf("multicast routing:\n"); - printf("\t%ld datagram%s with no route for origin\n", + printf("\t%lu datagram%s with no route for origin\n", mrtstat.mrts_no_route, plural(mrtstat.mrts_no_route)); - printf("\t%ld upcall%s made to mrouted\n", + printf("\t%lu upcall%s made to mrouted\n", mrtstat.mrts_upcalls, plural(mrtstat.mrts_upcalls)); - printf("\t%ld datagram%s with malformed tunnel options\n", + printf("\t%lu datagram%s with malformed tunnel options\n", mrtstat.mrts_bad_tunnel, plural(mrtstat.mrts_bad_tunnel)); - printf("\t%ld datagram%s with no room for tunnel options\n", + printf("\t%lu datagram%s with no room for tunnel options\n", mrtstat.mrts_cant_tunnel, plural(mrtstat.mrts_cant_tunnel)); - printf("\t%ld datagram%s arrived on wrong interface\n", + printf("\t%lu datagram%s arrived on wrong interface\n", mrtstat.mrts_wrong_if, plural(mrtstat.mrts_wrong_if)); - printf("\t%ld datagram%s dropped due to upcall Q overflow\n", + printf("\t%lu datagram%s dropped due to upcall Q overflow\n", mrtstat.mrts_upq_ovflw, plural(mrtstat.mrts_upq_ovflw)); - printf("\t%ld datagram%s dropped due to upcall socket overflow\n", + printf("\t%lu datagram%s dropped due to upcall socket overflow\n", mrtstat.mrts_upq_sockfull, plural(mrtstat.mrts_upq_sockfull)); - printf("\t%ld datagram%s cleaned up by the cache\n", + printf("\t%lu datagram%s cleaned up by the cache\n", mrtstat.mrts_cache_cleanups, plural(mrtstat.mrts_cache_cleanups)); - printf("\t%ld datagram%s dropped selectively by ratelimiter\n", + printf("\t%lu datagram%s dropped selectively by ratelimiter\n", mrtstat.mrts_drop_sel, plural(mrtstat.mrts_drop_sel)); - printf("\t%ld datagram%s dropped - bucket Q overflow\n", + printf("\t%lu datagram%s dropped - bucket Q overflow\n", mrtstat.mrts_q_overflow, plural(mrtstat.mrts_q_overflow)); - printf("\t%ld datagram%s dropped - larger than bkt size\n", + printf("\t%lu datagram%s dropped - larger than bkt size\n", mrtstat.mrts_pkt2large, plural(mrtstat.mrts_pkt2large)); } |