=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/mbuf.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/netstat/mbuf.c 1996/06/26 05:37:23 1.3 +++ src/usr.bin/netstat/mbuf.c 1997/06/29 20:18:01 1.4 @@ -1,4 +1,4 @@ -/* $OpenBSD: mbuf.c,v 1.3 1996/06/26 05:37:23 deraadt Exp $ */ +/* $OpenBSD: mbuf.c,v 1.4 1997/06/29 20:18:01 millert Exp $ */ /* $NetBSD: mbuf.c,v 1.9 1996/05/07 02:55:03 thorpej Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "from: @(#)mbuf.c 8.1 (Berkeley) 6/6/93"; #else -static char *rcsid = "$OpenBSD: mbuf.c,v 1.3 1996/06/26 05:37:23 deraadt Exp $"; +static char *rcsid = "$OpenBSD: mbuf.c,v 1.4 1997/06/29 20:18:01 millert Exp $"; #endif #endif /* not lint */ @@ -112,13 +112,13 @@ printf("\t%u mbufs allocated to \n", mbstat.m_mtypes[i], i); } - printf("%u/%u mapped pages in use\n", + printf("%lu/%lu mapped pages in use\n", mbstat.m_clusters - mbstat.m_clfree, mbstat.m_clusters); totmem = totmbufs * MSIZE + mbstat.m_clusters * MCLBYTES; totfree = mbstat.m_clfree * MCLBYTES; printf("%u Kbytes allocated to network (%d%% in use)\n", totmem / 1024, (totmem - totfree) * 100 / totmem); - printf("%u requests for memory denied\n", mbstat.m_drops); - printf("%u requests for memory delayed\n", mbstat.m_wait); - printf("%u calls to protocol drain routines\n", mbstat.m_drain); + printf("%lu requests for memory denied\n", mbstat.m_drops); + printf("%lu requests for memory delayed\n", mbstat.m_wait); + printf("%lu calls to protocol drain routines\n", mbstat.m_drain); }