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:
parent
e754c6bbb7
commit
4f7ac59b50
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user