mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 04:53:28 +00:00
reboot(8): print syscall error on sysctl failure
(cherry picked from commit a294b02fbc
)
This commit is contained in:
parent
e6278ae2bd
commit
26c99c95cc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user