reboot(8): print syscall error on sysctl failure

(cherry picked from commit a294b02fbc)
This commit is contained in:
Konstantin Belousov 2023-11-13 03:46:51 +02:00
parent e6278ae2bd
commit 26c99c95cc

View File

@ -275,7 +275,7 @@ get_pageins(void)
len = sizeof(pageins);
if (sysctlbyname("vm.stats.vm.v_swappgsin", &pageins, &len, NULL, 0)
!= 0) {
warnx("v_swappgsin");
warn("v_swappgsin");
return (0);
}
return (pageins);