opnsense-src/usr.sbin/usbconfig
Bjoern A. Zeeb 7907a92760 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)
2025-02-26 23:45:57 +00:00
..
dump.c usbconfig: add -l option to dump_device_desc for single line output 2025-02-26 23:45:57 +00:00
dump.h usbconfig: add -l option to dump_device_desc for single line output 2025-02-26 23:45:57 +00:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
pathnames.h usbconfig: allow to get usb vendors and products from the usb.ids database 2024-03-27 09:19:49 +01:00
usbconfig.8 usbconfig: add -l option to dump_device_desc for single line output 2025-02-26 23:45:57 +00:00
usbconfig.c usbconfig: add -l option to dump_device_desc for single line output 2025-02-26 23:45:57 +00:00