HomeFreeBSD

usbconfig: add -l option to dump_device_desc for single line output

Description

usbconfig: add -l option to dump_device_desc for single line output

Like pciconf -l add a -l to dump_device_desc for usbconfig which will
fold most fields into a single line. We do filter out some we think
will not be interesting in this case.

While mangling with string output in ways not always anticipated when
the program was initially written this should help to parse the
available devices for programs like fwget(8). While I had this in
mind for other bits for a while I got prompted by D48678 to finally
do it.

Sponsored by: The FreebSD Foundation
Reviewed by: bapt (LGTM), ziaee (man)
Differential Revision: https://reviews.freebsd.org/D48974

(cherry picked from commit c66308d7bcc3931b60a096bfe6ba0f50105e77de)

Details

Provenance
bzAuthored on Feb 12 2025, 10:53 PM
Reviewer
bapt
Differential Revision
D48974: usbconfig: add -l option to dump_device_desc for single line output
Parents
rG707ac59c2b31: openssh: Fix blacklistd sshd-session integration
Branches
Unknown
Tags
Unknown