code: plan9front

Download patch

ref: 95ea8f77397d2e768cef319bea78fc15ad8496d1
parent: 2402025982aa44c91e452fd792abdfc880461944
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);