Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43565 - endianness problem in lsusb
Summary: endianness problem in lsusb
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-03 00:02 UTC by Colin Leroy
Modified: 2004-06-14 15:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
the patch (lsusb.patch,1.86 KB, patch)
2004-03-03 00:02 UTC, Colin Leroy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.