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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148361

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