Bug 43565 - endianness problem in lsusb
Bug#: 43565 Product:  Gentoo Linux Version: unspecified Platform: PPC
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: colin@colino.net
Component: Core system
URL: 
Summary: endianness problem in lsusb
Keywords:  
Status Whiteboard: 
Opened: 2004-03-03 00:02 0000
Description:   Opened: 2004-03-03 00:02 0000
lsusb displays vendorId/productId the wrong way on bigendian machines. 
For example, for my HP printer, while /proc/bus/usb/devices displays 0x03f0 / 0x0704, and I have to put these numbers in /etc/hotplug/usb.usermap for my script to work, lsusb displays 0xf003 / 0x0407.
Here's a patch that fixes it. I've sent it to the author listed in usbutil package's AUTHOR file, but no answer so far.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Colin Leroy 2004-03-03 00:02:52 0000 -------
Created an attachment (id=26749) [details]
the patch

------- Comment #2 From Michael Hanselmann (hansmi) (RETIRED) 2004-06-14 15:09:19 0000 -------
I checked in a slightly modified patch. It will be on the rsync-mirrors in a
few hours. If it doesn't work, please reopen this bug.