From nobody Fri Sep 06 12:20:21 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 4X0b0P71qXz5Ttl5; Fri, 06 Sep 2024 12:20: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X0b0P4xJHz45xv; Fri, 6 Sep 2024 12:20:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725625221; 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=8YLCxVZBhOo6lfeb9UyI+YdMI5VHDHAgbIcQo70FMfc=; b=nzJVsYNHUlYQH3iiVmbiNp4sda0yZkjLFlVUS/EFZhB51bLyQ8/r+jsOKgf4QwvVPNKylo 9QQd+DpJsnSJkCsQ915j0Q6J/rMeO+lpHcxlAwlYZf7QV1yqxo/l5pYB0wz9p/EdBa22VM n8pMtjzEc5VKvlkWq5RV7jLSrhSGOhRk0r3rmso/f78ZVVFSgNVSxHxgc9pIUN/tN9ijBL U69P/6sgLdh9/127zPdGSQMxVE6ODAio1f4yb4z5cfHI4GJAgRMi2ZUk3RSGQWxfNEfrdu RUBltB0UyBhu+6lzvnnoMFo8d5MYakMpQrS8KlFKS31rrvuF3pSRvwN41yTRMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725625221; a=rsa-sha256; cv=none; b=cY+VlZJTBfxl4u1ZxwFCzu1E66E/t+xPtmFdFXqW1gX5K580eEmjrbzCI1oc/H8iqS7ULq jA+CyQJPDDGGsieYjGdqTNOQrOxGD2PnraaK6l15oHD+Cm3hmfsTj0EI78rlddLZQZGdn9 uTWzoh/8oQdDyTGiDgH7NsnmVonFtvMaANDUPpYx8o1Ta9bEEiPyYndt4WqzA8VypVea+G Rpg0Evyi7OuA5vWFzBa1oRtwD2xvQTvdg8p1v9RFkZA2ax8n7EmjdC4tqFzTX9FTAC7t5u /liQXgo/QNIT3PztZQKGN7iMcPreH1Oog3UIEpOCanKYSm4hAGcoYuKkWP345w== 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=1725625221; 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=8YLCxVZBhOo6lfeb9UyI+YdMI5VHDHAgbIcQo70FMfc=; b=SRTgQA7u0fdoV6QJRWWyq2mKMwckwJivF0yiR6FVIHyt/G358vdJ9tY2vIA0yzVMK/guDV 3hA5LfbYkbzoj7Y/KMerm7+ttOWkIZe/eFiXwGYBzjTQmjPe+F8xgQpDUT68nE9++zKk+3 8S7ZAjCQENeD6v/m3tB5T36qExBFezkhV48i/CzeAmUF2/Yh2DK+h2ZnyZLyGZ/9Wz0Avl wCGQ1lvj46TZ03RCd1wDLIu+4KhTf8pJURZ53TYs5fqLucrLDbVxOdKOFcu7N7wv3+OsaE tgeuInh83b0dv9G39+0SZv6RlmDIlbm5GF9/IKqP61juYWrBtiJGY9SsbIDtug== 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 4X0b0P4XdKzrsJ; Fri, 6 Sep 2024 12:20:21 +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 486CKLAm071197; Fri, 6 Sep 2024 12:20:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 486CKLg6071194; Fri, 6 Sep 2024 12:20:21 GMT (envelope-from git) Date: Fri, 6 Sep 2024 12:20:21 GMT Message-Id: <202409061220.486CKLg6071194@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: e7b4f6e0c064 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: e7b4f6e0c0640f08acc3d0157a117e58cbf3bf22 Auto-Submitted: auto-generated The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=e7b4f6e0c0640f08acc3d0157a117e58cbf3bf22 commit e7b4f6e0c0640f08acc3d0157a117e58cbf3bf22 Author: Ed Maste AuthorDate: 2024-09-03 14:21:46 +0000 Commit: Ed Maste CommitDate: 2024-09-06 12:20:06 +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) (cherry picked from commit 7da246dc4ffeba38ad723a1cb72a19511292c840) --- 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)