From bfce157fda90a812e1a99aa179a4c42f12ebfa24 Mon Sep 17 00:00:00 2001 From: jmc Date: Sun, 8 Jan 2023 08:27:17 +0000 Subject: [PATCH] - tweak the text relating to -w - sync usage() and SYNOPSIS ok ratchov --- usr.bin/audioctl/audioctl.8 | 10 +++++----- usr.bin/audioctl/audioctl.c | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.bin/audioctl/audioctl.8 b/usr.bin/audioctl/audioctl.8 index 4d75a40caac..d7b94559bce 100644 --- a/usr.bin/audioctl/audioctl.8 +++ b/usr.bin/audioctl/audioctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: audioctl.8,v 1.5 2023/01/08 06:58:07 ratchov Exp $ +.\" $OpenBSD: audioctl.8,v 1.6 2023/01/08 08:27:17 jmc Exp $ .\" $NetBSD: audioctl.1,v 1.7 1998/04/27 16:55:23 augustss Exp $ .\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -62,11 +62,11 @@ Suppress printing of the variable name. .It Fl q Suppress all output when setting a variable. .It Fl w Ar wait -Pause +Display variables every .Ar wait -seconds between each display. +seconds. .Nm -will display variables forever. +will continue to display variables until interrupted. .It Ar name Ns = Ns Ar value Attempt to set the specified variable .Ar name @@ -138,7 +138,7 @@ audio control devices audio devices .El .Sh EXAMPLES -Once per-second, display the number of bytes of silence inserted due to buffer +Once per second, display the number of bytes of silence inserted due to buffer underruns (since the device started playback): .Bd -literal -offset indent # audioctl -w 1 play.errors diff --git a/usr.bin/audioctl/audioctl.c b/usr.bin/audioctl/audioctl.c index e9bf643aec6..598e8cf07d4 100644 --- a/usr.bin/audioctl/audioctl.c +++ b/usr.bin/audioctl/audioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audioctl.c,v 1.45 2023/01/08 06:58:07 ratchov Exp $ */ +/* $OpenBSD: audioctl.c,v 1.46 2023/01/08 08:27:17 jmc Exp $ */ /* * Copyright (c) 2016 Alexandre Ratchov * @@ -64,8 +64,8 @@ struct field { }; const char usagestr[] = - "usage: audioctl [-f file] [-w wait_sec]\n" - " audioctl [-n] [-f file] [-w wait_sec] name ...\n" + "usage: audioctl [-f file] [-w wait]\n" + " audioctl [-n] [-f file] [-w wait] name ...\n" " audioctl [-nq] [-f file] name=value ...\n"; int fd, show_names = 1, quiet = 0, wait_sec = 0; -- 2.20.1