Hello, Lsusb is reporting wrong size for configuration descriptor on big endian system. I join a small patch to fix it.
Regards, -- Frédéric Leroy <[EMAIL PROTECTED]>
Index: lsusb.c =================================================================== RCS file: /cvsroot/linux-usb/usbutils/lsusb.c,v retrieving revision 1.24 diff -u -r1.24 lsusb.c --- lsusb.c 14 Feb 2006 05:09:09 -0000 1.24 +++ lsusb.c 15 Mar 2006 13:31:57 -0000 @@ -363,7 +363,8 @@ " bConfigurationValue %5u\n" " iConfiguration %5u %s\n" " bmAttributes 0x%02x\n", - config->bLength, config->bDescriptorType, config->wTotalLength, + config->bLength, config->bDescriptorType, + (config->wTotalLength >> 8) | (config->wTotalLength << 8 & 0xff00), config->bNumInterfaces, config->bConfigurationValue, config->iConfiguration, cfg, config->bmAttributes); if (!(config->bmAttributes & 0x80))