From nobody Mon Nov 13 01:48:24 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 4STC4n06jGz51Fq8; Mon, 13 Nov 2023 01:48:25 +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 4STC4m6nKhz3RjY; Mon, 13 Nov 2023 01:48:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699840104; 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=O64UnjzMZpL4IMnE9FDPBqL2i235R9d9zEwlUrqrWpQ=; b=gBvVWNp2ntPYvaToS/la30hvQUf74DFDfYtiABBwYO/Wyybn5CHIkDW6WRK+PB+Uf+3kNJ 9pgKayht4/UvpsHt2eySBNrTzuz6Pu5zKP8PFxDsj9NMyMqTJG2kc4048x1zkuCf4vq0b7 8F9uTRjH2JlgGPdRnwx6eoHL7LD2XeOhZJPv/fxet6FuVr3l1k3IVDI5XXSmZRb+8d3cny 0MHy7iR9/jy2PaXTN3idZa2VqifXRzFBsTL6FFJ33BwcwxD9Pp3VJYaq40iWtqQhSy9e6F JeeJb5rFlLYg4JVLtsqlQr5JGZRCFa/YJcRGqA7r4ddnkifjOo8UzoRmSB/+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699840105; 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=O64UnjzMZpL4IMnE9FDPBqL2i235R9d9zEwlUrqrWpQ=; b=jEjv8/Ksem55VkD0ZAHCdlr66L86+YF3FLseru+71yqPiBgAtll3z5aiY+pmvdlzOu9xaQ wjy4dhgP0xo9g4jRn6cSx6QrcVu064SSLNA+fJmAdXetp7biyIyNu4loKIVZCHLMcDPCwY 3sSwW8LWhXQylVP1o0ZGnsvYl+c4YWolE46QXmnr3EnSQ3C+P5iHpYpe3UZlIJ8TDt1WP2 N2MTjUr1SJS7cmRjOh4lWpgRMDygli+vTOrrfUTV6WTPCM0iODjTeEZZ6e1s6dsNCaxNHU DTWm62GQxwG//w+5cDPVq9Pn8BXAgIBvnmv3PBiViNXI3klCVbalqTC8zjpdOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699840105; a=rsa-sha256; cv=none; b=lfC6mMAQPe6JpVLOPceOx/faML4LdtR4H0MrRvH/R0pFozabeIRFmAAc6VxuY/qCGwc5Tb jjIobhwwum3/EjB4vguLXkn64MUMYP9zKZzhUNi8FGlhi5jjNzjsTty+mldkCJwkPSk5tl +N0q/WFTwfQC3gAwN7oMfAubGvnKQKHetgy7UuCMFTBw8tXHfq6hQ9KTXH7Ph6mU+K8dI2 SCy0+7yQBq1BoEL+PZx9xn4nT6oLrML5wq6TUoCQxR4NViNuyA8PtPjGOe7yoAVsIxxSfq IF/0U+LZtTYnBAdx3bVcX6ZH3qlCnQxg+sO0rBQxrLnLCoQqLEi6xiauPzv/7w== 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 4STC4m5vBfzms9; Mon, 13 Nov 2023 01:48:24 +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 3AD1mOQf091340; Mon, 13 Nov 2023 01:48:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AD1mO33091337; Mon, 13 Nov 2023 01:48:24 GMT (envelope-from git) Date: Mon, 13 Nov 2023 01:48:24 GMT Message-Id: <202311130148.3AD1mO33091337@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: a294b02fbc07 - main - 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/main X-Git-Reftype: branch X-Git-Commit: a294b02fbc07fa8466c8fc12311e7d4e92332467 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a294b02fbc07fa8466c8fc12311e7d4e92332467 commit a294b02fbc07fa8466c8fc12311e7d4e92332467 Author: Konstantin Belousov AuthorDate: 2023-11-13 01:46:51 +0000 Commit: Konstantin Belousov CommitDate: 2023-11-13 01:46:51 +0000 reboot(8): print syscall error on sysctl failure Noted by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42561 --- 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);