Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 43565

Summary: endianness problem in lsusb
Product: Gentoo Linux Reporter: Colin Leroy <colin>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: the patch

Description Colin Leroy 2004-03-03 00:02:20 UTC
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 Colin Leroy 2004-03-03 00:02:52 UTC
Created attachment 26749 [details, diff]
the patch
Comment 2 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2004-06-14 15:09:19 UTC
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.