summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/mbuf.c
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1996-06-02 23:19:12 +0000
committeralex <alex@FreeBSD.org>1996-06-02 23:19:12 +0000
commit5c1e86ebb424294fcfae39ae7ff1efcf8808086d (patch)
treea562c2f6b0b887d7adcf7d867066326bca326e2e /usr.bin/netstat/mbuf.c
parent256d4f51af66d46915508a783071de1a6b139187 (diff)
downloadFreeBSD-src-5c1e86ebb424294fcfae39ae7ff1efcf8808086d.zip
FreeBSD-src-5c1e86ebb424294fcfae39ae7ff1efcf8808086d.tar.gz
Code cleanup: remove unused variables, use correct *printf format
specifiers (some unsigned values were printed as signed, some longs were printed as ints), and place parentheses around assignments in if statements.
Diffstat (limited to 'usr.bin/netstat/mbuf.c')
-rw-r--r--usr.bin/netstat/mbuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c
index 0dfc943..54d48b6 100644
--- a/usr.bin/netstat/mbuf.c
+++ b/usr.bin/netstat/mbuf.c
@@ -109,13 +109,13 @@ mbpr(mbaddr)
printf("\t%u mbufs allocated to <mbuf type %d>\n",
mbstat.m_mtypes[i], i);
}
- printf("%u/%u mbuf clusters in use\n",
+ printf("%lu/%lu mbuf clusters 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);
}
OpenPOWER on IntegriCloud