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
This commit is contained in:
Robert Watson 2005-07-24 01:42:42 +00:00
parent e754c6bbb7
commit 4f7ac59b50

View File

@ -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;
}