summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/mbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat/mbuf.c')
-rw-r--r--usr.bin/netstat/mbuf.c3
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;
}
OpenPOWER on IntegriCloud