git: 71c2dedb2106 - stable/14 - reboot(8): print syscall error on sysctl failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 Nov 2023 01:40:20 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=71c2dedb2106edb069588ada5999fd01114b0b10
commit 71c2dedb2106edb069588ada5999fd01114b0b10
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-11-13 01:46:51 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-11-20 01:39:21 +0000
reboot(8): print syscall error on sysctl failure
(cherry picked from commit a294b02fbc07fa8466c8fc12311e7d4e92332467)
---
sbin/reboot/reboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index bcb6c6bde05a..dce747d79b15 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -281,7 +281,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);