Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/netstat member of mrtstat are u_long, so %lu is more...



details:   https://anonhg.NetBSD.org/src/rev/e068bef48c30
branches:  trunk
changeset: 532207:e068bef48c30
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sun Jun 02 15:45:58 2002 +0000

description:
member of mrtstat are u_long, so %lu is more appropriate than %ld.

diffstat:

 usr.bin/netstat/mroute.c |  26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diffs (56 lines):

diff -r 36783207d65a -r e068bef48c30 usr.bin/netstat/mroute.c
--- a/usr.bin/netstat/mroute.c  Sun Jun 02 15:25:42 2002 +0000
+++ b/usr.bin/netstat/mroute.c  Sun Jun 02 15:45:58 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mroute.c,v 1.14 2001/05/28 04:22:56 assar Exp $        */
+/*     $NetBSD: mroute.c,v 1.15 2002/06/02 15:45:58 itojun Exp $       */
 
 /*
  * Copyright (c) 1989 Stephen Deering
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "from: @(#)mroute.c     8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: mroute.c,v 1.14 2001/05/28 04:22:56 assar Exp $");
+__RCSID("$NetBSD: mroute.c,v 1.15 2002/06/02 15:45:58 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -246,26 +246,26 @@
 
        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));
 }



Home | Main Index | Thread Index | Old Index