git: 26c99c95ccfa - stable/13 - reboot(8): print syscall error on sysctl failure

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 20 Nov 2023 01:41:42 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=26c99c95ccfa59091e30715a86f389a072fa6c11

commit 26c99c95ccfa59091e30715a86f389a072fa6c11
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:40:34 +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 a087be7bbf23..705dae6fae5e 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -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);