summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/mbuf.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-01-23 20:19:16 +0000
committerwollman <wollman@FreeBSD.org>1995-01-23 20:19:16 +0000
commitba9388f7cc62076c3467efdce76ed61ef977b691 (patch)
tree564d8799aaebb65a04e8a19d8610650e4f6849a8 /usr.bin/netstat/mbuf.c
parent5eddfb68a10d95a6f44586f4cc87f7f4d843d667 (diff)
downloadFreeBSD-src-ba9388f7cc62076c3467efdce76ed61ef977b691.zip
FreeBSD-src-ba9388f7cc62076c3467efdce76ed61ef977b691.tar.gz
Don't print protocol-cloned routes by default (enabled by -a flag).
Print non-zero expiration timers. Use err(3) for error reporting.
Diffstat (limited to 'usr.bin/netstat/mbuf.c')
-rw-r--r--usr.bin/netstat/mbuf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c
index dd60a0e..157c4f6 100644
--- a/usr.bin/netstat/mbuf.c
+++ b/usr.bin/netstat/mbuf.c
@@ -84,12 +84,11 @@ mbpr(mbaddr)
register struct mbtypes *mp;
if (nmbtypes != 256) {
- fprintf(stderr,
- "%s: unexpected change to mbstat; check source\n", prog);
+ warnx("unexpected change to mbstat; check source");
return;
}
if (mbaddr == 0) {
- fprintf(stderr, "%s: mbstat: symbol not in namelist\n", prog);
+ warnx("mbstat: symbol not in namelist");
return;
}
if (kread(mbaddr, (char *)&mbstat, sizeof (mbstat)))
OpenPOWER on IntegriCloud