The speed character array needs to be one char wider to hold '5000\n'. USB 3.0 devices don't show up in the lsusb output. Output before the patch: sarah@broadway:~/git/usbutils$ ./lsusb -t /: Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/4p, 480M |__ Port 2: Dev 4, If 0, Class=stor., Driver=usb-storage, 480M |__ Port 2: Dev 7, If 0, Class=hub, Driver=hub/4p, 480M /: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M Output after the patch: sarah@broadway:~/git/usbutils$ ./lsusb -t /: Bus 10.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/4p, 480M |__ Port 2: Dev 4, If 0, Class=stor., Driver=usb-storage, 480M |__ Port 2: Dev 7, If 0, Class=hub, Driver=hub/4p, 480M /: Bus 09.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M |__ Port 2: Dev 2, If 0, Class=hub, Driver=hub/4p, 5000M /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M Signed-off-by: Sarah Sharp <sarah.a.sharp@xxxxxxxxxxxxxxx> --- lsusb-t.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lsusb-t.c b/lsusb-t.c index f604155..8bcdbf1 100644 --- a/lsusb-t.c +++ b/lsusb-t.c @@ -61,7 +61,7 @@ struct usbdevice { char product[64]; char serial[64]; char version[64]; - char speed[4 + 1]; /* '1.5','12','480' + '\n' */ + char speed[5 + 1]; /* '1.5','12','480','5000' + '\n' */ char name[MY_SYSFS_FILENAME_LEN]; char driver[MY_SYSFS_FILENAME_LEN]; @@ -76,7 +76,7 @@ struct usbbusnode { unsigned int bDeviceClass; unsigned int devnum; unsigned int maxchild; - char speed[4 + 1]; /* '1.5','12','480' + '\n' */ + char speed[5 + 1]; /* '1.5','12','480','5000' + '\n' */ char driver[MY_SYSFS_FILENAME_LEN]; }; -- 1.6.3.3 -- 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