From nobody Mon Nov 20 01:40:20 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SYVZF0GjMz51gMt; Mon, 20 Nov 2023 01:40:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SYVZD6N7Qz4DjJ; Mon, 20 Nov 2023 01:40:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700444420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l4Ic7GHHpwgKO709znKStDzO5yqvsHDtupPtuiKVztA=; b=P0d8dM1a3qAruDMxa/1+Xyq1kGdS29u4ukOvFQTWW23+RHamcyF+ObVQiJMawQ/GfvQnQg HfP1BdihZ8oPMWsFU1m83Q5ZrdxGHrZkSqGGLoyl1MFoTtIcz6ww8cgFzt+8cHhjOCyiCt gYK5Im6n2hdTpew79TrFOjiYiTlsDCNeRCjX0q2CO/XBgukFEpEJdSo5i8PVPF3HRGVqzp IT82ZVXPwZfIL1nTpvKMaPy+gY0fh9szcyCUToegqMk0+Qs2+Lew7out4575m+I45du7WV Sw5CD4UuoJFTwKYOO9e9bylZPUkqAze7/PqVhdMo5/XctR9SYbdSLEkC2bxydg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700444420; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l4Ic7GHHpwgKO709znKStDzO5yqvsHDtupPtuiKVztA=; b=eM7qlX70mWT9Fc8lzUacrXHV1CCjYWnRHSRc144EYBEP47XwJkSt861OMOjiZ5aDK/t4Ee 0Vn1sQ5MD78XRdCyTaQgIIIo/NS/v+qJNSlbdkdkdR+fWDR+lAKKHHc7+VFqrD7WBWjq+T 9IiwuRRubaoTjfN8+SWyyEiBo4JQMKzSR2Ehz1evhwOvoHREOpwSr3ENZ7B8lQv+dWkgiI 8mN+/TkZ0NAMZIMsMEAfAGQjbGjy+5mEQdbT9iqSCoaDsRCck7ioR32O6ZYHMPangjH8SN 77NFhyUzat3AuJYUpt/eZcuQU96gKIj1m8D3MC+QZTaWJbPvcZciCaQWMbPRHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700444420; a=rsa-sha256; cv=none; b=OByWoFaG0ZUzoEhdmRTUUZmIAQjkDfPeXi1eygWY6sMSH8cfLl/zSqfyTk6F648QxZXS7t g2HuBszbYhwN445Q60/tHDthfy/PBKNIi65z44QcZyMKiQJ2d9wDETqV0Ix7qVz6fX22cP WCIr5vEFgP1v/Ul98+o6Jdl7UyqqfJDjNJBzXYcJxlGyhQ4P4n9bplQfh4U7m3G3JkgpnA 8FqyC5v+x6WfSPDmul3rBjMmD8NNat/VFamBKa99SfPK/1U/euMXAhvPGrAEBk5jFYh+ae ZMuh3E1Gm5f5o3piqd8NVkSVY/LQxj0wtmdCDadWOoobB19ztRv9elz43YK6/A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SYVZD5Qf4zYKv; Mon, 20 Nov 2023 01:40:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AK1eKUE044349; Mon, 20 Nov 2023 01:40:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AK1eKHR044346; Mon, 20 Nov 2023 01:40:20 GMT (envelope-from git) Date: Mon, 20 Nov 2023 01:40:20 GMT Message-Id: <202311200140.3AK1eKHR044346@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 71c2dedb2106 - stable/14 - reboot(8): print syscall error on sysctl failure List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 71c2dedb2106edb069588ada5999fd01114b0b10 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=71c2dedb2106edb069588ada5999fd01114b0b10 commit 71c2dedb2106edb069588ada5999fd01114b0b10 Author: Konstantin Belousov AuthorDate: 2023-11-13 01:46:51 +0000 Commit: Konstantin Belousov 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);