From nobody Fri Sep 06 12:19:16 2024 X-Original-To: dev-commits-src-branches@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 4X0Zz91gh6z5Tthw; Fri, 06 Sep 2024 12:19:17 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X0Zz86zfsz457R; Fri, 6 Sep 2024 12:19:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725625157; 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=QY5/Wv6xyqpc2LQI478GuevJYrjyZrCfkYyRFfnayyo=; b=sTwVErUJzGNADgRdwWfP8MYktA712AuwjjRZaIcIoOWoyewn1HIXyJeQ5lPRuDFqct1bBp OJpO0z8iWVUrGU7qywt5qhyIe9BE1xfuE2dUeuI/FIvhASxG2wdnH3r7+UNjZCd2M4zVpP 66jIITBa5nkDc7zBz2k6gRpd2Xa2C5WTRiKCwAn0o5W1nQwDRytLOle5Tno2dv3zLmkm6S ZHFM+vXuX7p6aqtjq9ZjVuqTgALCQlMyVNTIOFfz7r/2XjA50hSLGLys7Bkj1KnRpsOPAR U11xuCZWY0nlKQcOipLL6uilEG3w60Wxp/wq41CH2uDTchDz0mLTj2Setd5T3w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725625157; a=rsa-sha256; cv=none; b=KbGXBIAfB+RS63opaI4RCBr0jDzVdSToXb5Ya+FW9HiIH2QEqVufFjqnSm3F5r9NLyqIJe rAbnzz+PWBnliPynqgElwwgvwU08DOUEMdW/6XZxZXHxaBwDS3qBstfi6iGZHragz5XpNG SRF8c+1w9KxIC+6hDdv3n+rCqsfth+FHKRfispYg9zOhx2kjnMiFuotN/1OiMneIw6r/XB TIeruUJoLrn8raFBcmOTSN1wuoXu2yUwZeVxd9StMu+qPNmaufJ/caebsTM8+YE89gDNQU SO3PIG7VzPBlSz4ZzOd3uQmgNBQMpYIvgLmpQhwarfKSJMMYSeKT4I+6cVrXJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725625157; 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=QY5/Wv6xyqpc2LQI478GuevJYrjyZrCfkYyRFfnayyo=; b=i2411QNPu/Wa6MdORWLuVS6G+uWez65/CyqxcZfvRK1enkbACpInWV2NV65IgbGGSzvvfA jgYLNJlE+pNllNopkEMvxTj07OFA/dIIMNEGc/ckVyr2Op4VcPOTT73FQdsiPFkg+/ZLzw JaPabgX4BcxqjzY4MhYn7w8zeT4lgNVL74wS1W9v6z1ipzDO1FjCoMCaT2SU5arZuXNYic n4N/f3Vm8vBK6AhNTxy9P02w4cr5bMuuQzshFJ27830KxNpsfI5maHA4mWegBBa0UgO5hz ZnVzN4/dc8Mpg3cRJSqKtQdMJyNQD3nNKt3Igqzi6OPQl+n3y2tUPb3TKKG9Ag== 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 4X0Zz86ZsMzrXW; Fri, 6 Sep 2024 12:19:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 486CJG2K062228; Fri, 6 Sep 2024 12:19:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 486CJGnX062225; Fri, 6 Sep 2024 12:19:16 GMT (envelope-from git) Date: Fri, 6 Sep 2024 12:19:16 GMT Message-Id: <202409061219.486CJGnX062225@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 7da246dc4ffe - stable/14 - beep: show error upon failure to open sound device List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7da246dc4ffeba38ad723a1cb72a19511292c840 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=7da246dc4ffeba38ad723a1cb72a19511292c840 commit 7da246dc4ffeba38ad723a1cb72a19511292c840 Author: Ed Maste AuthorDate: 2024-09-03 14:21:46 +0000 Commit: Ed Maste CommitDate: 2024-09-05 14:50:09 +0000 beep: show error upon failure to open sound device If beep cannot open /dev/dsp provide more information to aid the user in diagnosing a problem. Reviewed by: christos Sponsored by: The FreeBSD Foundation (cherry picked from commit 83325e7b738ce87d88553585b135b0e7d15997a6) --- usr.bin/beep/beep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/beep/beep.c b/usr.bin/beep/beep.c index 151236b4825b..2696bacfacf4 100644 --- a/usr.bin/beep/beep.c +++ b/usr.bin/beep/beep.c @@ -202,7 +202,7 @@ main(int argc, char **argv) f = open(oss_dev, O_WRONLY); if (f < 0) - errx(1, "Failed to open '%s'", oss_dev); + err(1, "Failed to open '%s'", oss_dev); c = 1; /* mono */ if (ioctl(f, SOUND_PCM_WRITE_CHANNELS, &c) != 0)