From nobody Wed Jun 29 08:23:57 2022 X-Original-To: dev-commits-src-all@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 D277D8659B3; Wed, 29 Jun 2022 08:23:57 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LXvcs3HDFz4nwQ; Wed, 29 Jun 2022 08:23:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656491037; 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=ChIHN6VxDHrQUXkyNdri75Lx+4Ylj93fuxIKUTilTTA=; b=rgePmo/eBiwairfKEvM9FcKVYsf8JKgT7r4aGhasfPn1kZrcS2meQ7oFtujauF0ctOoTYZ +q8Q8A9Nmf1hB8CEpRpxgLAWgatwK+sNg4Nnbp2PzgA7JRWK4ZEm9Eg8cr36n16Y+4G+xS 6DVIu7MAUroMIgJZcAfHQs79Sm3BkbVwvLq46DVzXkLkJ4VsnF0jWoZoAoz+rus7x07Zfr IYWtBLP5x7BFdS4tLrBnTMGsPMWAkR7NsYS6OlNoQJK8wHV5t1ioPVQRblH7z5HOoaBDzK 9tex6WsQNo0Cm1BYuDR8uGH4hIDmw4a5nHD/r6F7DMPeesb229Y4yDYYwTVnnw== 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 4978563D2; Wed, 29 Jun 2022 08:23:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25T8NvRm018826; Wed, 29 Jun 2022 08:23:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25T8Nvd1018825; Wed, 29 Jun 2022 08:23:57 GMT (envelope-from git) Date: Wed, 29 Jun 2022 08:23:57 GMT Message-Id: <202206290823.25T8Nvd1018825@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 6341ffcdebbb - stable/13 - usbconfig.8: Improve style and fix examples List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6341ffcdebbbfe458694776dd0dbebb1b88141b2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656491037; 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=ChIHN6VxDHrQUXkyNdri75Lx+4Ylj93fuxIKUTilTTA=; b=TyqIHleWS3vKgItEmqjAqzfjHUHgFoIGJBZUDwM5t158pwhGhQve7CHOXUkqGCfmPQoTxn xZG9unwfIL1Hj1bfFj2lHDj/49vwY54bJu/PUuqxeZd/qjbAfrGv6Tnk7qlEBm8VjLMf1o EZIwQ/eM16Uepp9CC+R5Rb0jrtte1jLUw579PzxbZbTcPLbd1Bb3yHnDMeSTa78fFQpdAa tPw9VoE7Iw/JUTWKBUkuUW8cjyg7kRMrjNi5f4soztBwRLlykXVKUdoUUSeyOz578k8EpL gcUF3wz+9XrcKxJ4kIAPQF06WctH/prSTZq6vBnUD3RJa+z7j68iJtiT1rEXdg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656491037; a=rsa-sha256; cv=none; b=RSif+jHIVxOvklln6Yk1Zg7kylO7ReWFiNDKQZq/HC4e5OaqJtEPbYDBJAEmXCkW7Hdg19 pWspp1tBg63pp0FNAN6wStlXcD3qMV+Hr/z9g1c3I0ArbLEWGsfsIXI2vPbRpiExHRogG9 ZFRorJzj+7Cs5otMAlSKvmy8ToCMOCwm7Hwey9oBj52P2tdhzD1QQsiuz4h6XGS1u9IFGQ vNiyhjgjHkysqTa1pXa3BZHJsb6ubXeTFK4HAZXrIArPirSC7Q2WBbiTeLi4D+o0JEAW/p VoWOFQONHUcSUtcL+WlesnUYRg0jkUowHJfr/+mftR+3gRyN2Qbi8U/wurquQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=6341ffcdebbbfe458694776dd0dbebb1b88141b2 commit 6341ffcdebbbfe458694776dd0dbebb1b88141b2 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-01-29 20:59:29 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-06-29 08:22:49 +0000 usbconfig.8: Improve style and fix examples - Use Ar macros for arguments - Stylize the argument synopsis to the -d flag - Change the width of the list to one of the actual tags in the list - Stylize "ugen" and "/dev/ugen" with Cm as those are constant strings, which are usually treated as command modifiers. - Break long lines to reduce the number of warnings from linters - Fix examples; the -d flag is now required when specifying the unit and the address with the "dot notation". MFC after: 2 weeks (cherry picked from commit 5eafaf9e68894cda4e8dca5f363be0b4f15b5cd6) --- usr.sbin/usbconfig/usbconfig.8 | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/usr.sbin/usbconfig/usbconfig.8 b/usr.sbin/usbconfig/usbconfig.8 index e34cf7cfd5d0..0644199bdca7 100644 --- a/usr.sbin/usbconfig/usbconfig.8 +++ b/usr.sbin/usbconfig/usbconfig.8 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 21, 2021 +.Dd January 29, 2022 .Dt USBCONFIG 8 .Os .Sh NAME @@ -35,36 +35,46 @@ .Op Fl a Ar addr .Op Fl i Ar interface_index .Op Fl v -.Op cmds... +.Op Ar cmds ... .Nm -.Fl d Ar [[/dev/]ugen]. +.Fl d +.Sm off +.Oo Oo Cm /dev/ Oc Cm ugen Oc Ar unit Cm \&. Ar addr +.Sm on .Op Fl i Ar interface_index .Op Fl v -.Op cmds... +.Op Ar cmds ... .Sh DESCRIPTION The .Nm utility is used to configure and dump information about the USB subsystem. .Pp The options are as follows: -.Bl -tag -width " " +.Bl -tag -width "-u unit" .It Fl u Ar unit Limit device range to USB devices connected to the given USBUS unit. .It Fl a Ar addr Limit device range to the given USB device index. Should only be used in conjunction with the unit argument. -.It Fl d Ar [[/dev/]ugen]. +.It Xo +.Fl d +.Sm off +.Oo Oo Cm /dev/ Oc Cm ugen Oc Ar unit Cm \&. Ar addr +.Sm on +.Xc Limit device range to USB devices connected to the given unit and address. -The unit and address coordinates may be prefixed by the lowercased word "ugen", +The unit and address coordinates may be prefixed by the lowercased word +.Cm ugen , or the full path name -.Pa /dev/ugen . +.Cm /dev/ugen . .It Fl h Show help and available commands. .It Fl i Ar interface_index Specify interface index as indicated by the command description. -If this argument is not specified a value of zero will be used for the interface index. +If this argument is not specified +a value of zero will be used for the interface index. .It Fl v -Shortcut to activate the +Activate the .Cm dump_device_desc , .Cm dump_curr_config_desc , and @@ -179,15 +189,15 @@ List all connected USB devices and their attached interface drivers: .Pp Dump device and configuration descriptors for device on USB bus 1 at address 2: .Pp -.Dl usbconfig ugen1.2 dump_all_desc +.Dl usbconfig -d ugen1.2 dump_all_desc .Pp Dump HID descriptor for device on USB bus 1 at address 2: .Pp -.Dl usbconfig ugen1.2 do_request 0x81 0x06 0x2200 0 0x100 +.Dl usbconfig -d ugen1.2 do_request 0x81 0x06 0x2200 0 0x100 .Pp Power off the device on USB bus 1 at address 2: .Pp -.Dl usbconfig ugen1.2 power_off +.Dl usbconfig -d ugen1.2 power_off .Sh SEE ALSO .Xr usb 4 , .Xr usb_quirk 4 ,