Date: Fri, 6 Sep 2024 12:20:21 GMT From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e7b4f6e0c064 - stable/13 - beep: show error upon failure to open sound device Message-ID: <202409061220.486CKLg6071194@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=e7b4f6e0c0640f08acc3d0157a117e58cbf3bf22 commit e7b4f6e0c0640f08acc3d0157a117e58cbf3bf22 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2024-09-03 14:21:46 +0000 Commit: Ed Maste <emaste@FreeBSD.org> 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409061220.486CKLg6071194>