diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-07-24 01:42:42 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-07-24 01:42:42 +0000 |
commit | b9cf082129e9aee4e22881240ef45376354cdecb (patch) | |
tree | 2db81ddbdc11c01b3a5d465bad34a2df4e3e87d8 /usr.bin | |
parent | 560d460544dfe9f0c7701b09b72a5cb644278eca (diff) | |
download | FreeBSD-src-b9cf082129e9aee4e22881240ef45376354cdecb.zip FreeBSD-src-b9cf082129e9aee4e22881240ef45376354cdecb.tar.gz |
Since libmemstat(3) now supports its own error management mechanism,
use that instead of trying to use errno, in order to produce a
sensible error message.
MFC after: 1 day
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/mbuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/netstat/mbuf.c b/usr.bin/netstat/mbuf.c index b7b41eb..9bb4038 100644 --- a/usr.bin/netstat/mbuf.c +++ b/usr.bin/netstat/mbuf.c @@ -205,7 +205,8 @@ mbpr_sysctl(void) * uma(9), and some malloc(9). */ if (memstat_sysctl_all(mtlp, 0) < 0) { - warn("memstat_sysctl_all"); + warnx("memstat_sysctl_all: %s", + memstat_strerror(memstat_mtl_geterror(mtlp))); goto out; } |