git: 60bdfe986968 - main - mixer(8): Remove [.volume] string from default printout.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Mar 2022 16:33:48 UTC
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=60bdfe986968a583fd26fee107b922bad4b57031 commit 60bdfe986968a583fd26fee107b922bad4b57031 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-03-20 16:23:37 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-03-20 16:32:43 +0000 mixer(8): Remove [.volume] string from default printout. Submitted by: christos@ Differential Revision: https://reviews.freebsd.org/D34591 Sponsored by: NVIDIA Networking --- usr.sbin/mixer/mixer.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/usr.sbin/mixer/mixer.c b/usr.sbin/mixer/mixer.c index b95b7502f3f4..a6f48f85ae43 100644 --- a/usr.sbin/mixer/mixer.c +++ b/usr.sbin/mixer/mixer.c @@ -249,12 +249,8 @@ printdev(struct mixer *m, int oflag) mix_ctl_t *cp; if (!oflag) { - char buffer[32]; - (void)snprintf(buffer, sizeof(buffer), - "%s.%s", d->name, "volume"); - - printf(" %-16s= %.2f:%.2f\t", - buffer, d->vol.left, d->vol.right); + printf(" %-10s= %.2f:%.2f ", + d->name, d->vol.left, d->vol.right); if (!MIX_ISREC(m, d->devno)) printf(" pbk"); if (MIX_ISREC(m, d->devno))