ref: 40ca5d99be0d0de90b97e934ef34cc541f0de041
parent: 0fcba1a2f0ec907683c005f7e9bef09e15163459
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jan 4 20:57:05 EST 2023
nusb/usbd: provide vid and did in device info string for hubs
--- a/sys/src/cmd/nusb/usbd/hub.c
+++ b/sys/src/cmd/nusb/usbd/hub.c
@@ -199,8 +199,8 @@
devctl(h->dev, "info roothub csp %#08ux ports %d",
0x000009, h->nport);
else{
- devctl(h->dev, "info hub csp %#08ulx ports %d %q %q",
- ud->csp, h->nport, ud->vendor, ud->product);
+ devctl(h->dev, "info hub csp %#08ulx ports %d vid %#.4ux did %#.4ux %q %q",
+ ud->csp, h->nport, ud->vid, ud->did, ud->vendor, ud->product);
for(i = 1; i <= h->nport; i++)
if(hubfeature(h, i, Fportpower, 1) < 0)
fprint(2, "%s: %s: power: %r\n", argv0, fn);
--
⑨