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:
rwatson 2005-07-24 01:42:42 +00:00
parent 560d460544
commit b9cf082129

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