From nobody Tue Sep 03 14:28:13 2024 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 4WynzK3k74z5Pcr6; Tue, 03 Sep 2024 14:28:13 +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 4WynzK2nY6z4tG8; Tue, 3 Sep 2024 14:28:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725373693; 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=LkIvHbQ/uUit5nNa7OvyqYSBO8Ka0nyJHhkvwyy3asQ=; b=rD8DOrNogPFKodtUABqV0eowbF/A2q9/IPgOPjKOO9ingHsAgM/y4j+vNbnw3vNepThJGF MKX523ytguGgTfM7wEzCwhlsfl4PbxJh0f+iSQa7LgtynU2WYYZ31P72GAl+cUNbhVNOHR sSdU2A1wkFG7IwRt7TtVsxrAOtELGtJ2B7qZWrWa9mdXVUkkgwmuSXka0b0TaCYlWrg7im 4PFU+Wpt7VpfpOqcqQMxZ+oL/YI40ep4siQXb32TNbQ3bWlTTFHzo8bFlg2QIIBXOYvfyh UuNl+rtgvh7rOynDPGcLwQt53SMZbpowSr9tMvNwyYRbsMRmhgX0+fJzbF8GEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725373693; a=rsa-sha256; cv=none; b=hgKtdQ1XWRc6Qu/Jbrdi7U9Go8ECNiZC244t2r17nxcM6bkdqNB5mkdnafmft06NH7UbbN O7V2po01chHg3ARdStWo18hCwg/JQv3bZoMtsEOTTyXyFEReV6j5mP/qa+oi2c13NAX3PN TeoC7DOVXT5oT5BhWTR7KNwp7oPvTTd0mfabozTgQtiq+MNAEANytt4a8CrfjPTi+28V17 QjZ82C2GwsdCToUW4FbDCzvhP+OpZFNtReKCcDNBcA4XYeWLDD1TEDU91kNLFuMNSZA408 Xs5yLcKQSGoVgUSB4QLM/ANYuCQqOA8axRLLnWYG/RqOLlDeiMe3REMy3jVsHA== 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=1725373693; 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=LkIvHbQ/uUit5nNa7OvyqYSBO8Ka0nyJHhkvwyy3asQ=; b=VcgZwaRCZPxesB8hCQnPLWIXV9BoDmDY+H6AwqZPUIaDnPrBJcguyNVX/SIrryJXNB3DkN IfnqDZkTW5/kxAAgHmnLbCiboNJ6c6U2CwO5ZtCpX4s0n8DjIFhJmcZaOyD45Glvn1C/Jm h37GPZnravhrw9wV7ZWimBE3vec8SVLNeuvM2zM98jG7JdaO5g3YTEueWthP56pJGBE9L0 UOtwWPxNzp31P8Qqr1pup9TMQTuiUqtD37kys+xrb7cccgGjC404u2Ncc72v98NytlV5Jd UFBH4boLSroAmVfMrBVmyYI9FOS46lerRlH8qb8cnJpqgCvEVaoKgteuhnmaCg== 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 4WynzK2Lw5zl6T; Tue, 3 Sep 2024 14:28:13 +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 483ESDwW020493; Tue, 3 Sep 2024 14:28:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483ESDAK020490; Tue, 3 Sep 2024 14:28:13 GMT (envelope-from git) Date: Tue, 3 Sep 2024 14:28:13 GMT Message-Id: <202409031428.483ESDAK020490@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 83325e7b738c - main - beep: show error upon failure to open sound device 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 83325e7b738ce87d88553585b135b0e7d15997a6 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=83325e7b738ce87d88553585b135b0e7d15997a6 commit 83325e7b738ce87d88553585b135b0e7d15997a6 Author: Ed Maste AuthorDate: 2024-09-03 14:21:46 +0000 Commit: Ed Maste CommitDate: 2024-09-03 14:27:43 +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 --- 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)