On Fri, Jan 7, 2011 at 5:52 PM, erik quanstrom <quans...@labs.coraid.com> wrote: > okay, so there's some sort of bug. what kind of output > would you like. this is for the kw ehci. >
Hmm, if it is a bug it is on purpose I think. You are right it could probably change to show vid/did. All is started by startdev in /sys/src/cmd/usb/usbd/usbd.c:224 Devices have their info written by writeinfo() /sys/src/cmd/usb/usbd/dev.c:217 Hubs (root or not) have their info written by usbd in newhub() /sys/src/cmd/usb/usbd/usbd.c:177 Hubs all have the same format. As root hubs are invented, they don't have vid/did, so plain hubs don't either to have the same format. The vid/did can be added and to make the string similar maybe the vid/did for roohubs can be set to 0xffff/0xffff or something. You only have to change the info strings of newhub to be more like the ones in writeinfo and see if anything breaks (I don't think it should but...). HTH G.