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
560d460544
commit
b9cf082129
@ -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