On Tue, Apr 28, 2009 at 07:39:00AM +0800, Xiaofan Chen wrote: > On Tue, Apr 28, 2009 at 12:58 AM, Greg KH <greg@xxxxxxxxx> wrote: > > Turns out there was a patch in the suse tree to get this to work when > > there is no proc files around. I've added that to the usbutils tree as > > well for now (it's not the nicest, but it works for now, which will make > > the distros happy.) > > The output format is quite different and somehow it prints more. > > Old version: > mcuee@ubuntu904:~/Desktop/build/usbutils/usbutils$ /usr/bin/lsusb -t > Bus# 1 > `-Dev# 1 Vendor 0x1d6b Product 0x0002 > Bus# 2 > `-Dev# 1 Vendor 0x1d6b Product 0x0001 > |-Dev# 2 Vendor 0x058f Product 0x9360 > |-Dev# 3 Vendor 0x046d Product 0xc054 > `-Dev# 4 Vendor 0x04d8 Product 0x0033 > > New version (latest git) > mcuee@ubuntu904:~/Desktop/build/usbutils/usbutils$ lsusb -t > 2-7:1.0: No such file or directory > 2-8:1.0: No such file or directory > /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci_hcd/8p, 12M > |__ Port 1: Dev 2, If 0, Class=stor., Driver=usb-storage, 12M > |__ Port 4: Dev 3, If 0, Class=HID, Driver=usbhid, 1.5M > |__ Port 7: Dev 4, If 0, Class=HID, Driver=, 12M > |__ Port 8: Dev 5, If 0, Class=vend., Driver=, 12M > /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/8p, 480M > > Not so sure about the first two lines. lsusb works fine. Yeah, it's messy, I agree, but was what had been shipping in suse for a few years now, so someone must like it... Anyway, I'll start working on this to unify it all and make it look better. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html