git: 67829b6307b8 - main - mixer(8): Print usage to standard error.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Oct 2021 13:57:19 UTC
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=67829b6307b8c81397cedaaf7a0e6e281560be32 commit 67829b6307b8c81397cedaaf7a0e6e281560be32 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2021-10-15 13:56:00 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2021-10-15 13:56:37 +0000 mixer(8): Print usage to standard error. Differential Revision: https://reviews.freebsd.org/D32507 Submitted by: christos@ Sponsored by: NVIDIA Networking --- usr.sbin/mixer/mixer.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index f0e0c2d3b22b..ba13291f7b36 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -174,9 +174,8 @@ next: static void __dead2 usage(void) { - printf("usage: %1$s [-f device] [-d unit] [-os] [dev[.control[=value]]] ...\n" - " %1$s [-d unit] [-os] -a\n", - getprogname()); + fprintf(stderr, "usage: %1$s [-f device] [-d unit] [-os] [dev[.control[=value]]] ...\n" + " %1$s [-d unit] [-os] -a\n", getprogname()); exit(1); }