After upgrading libusbx from 1.0.15 to 1.0.16 I noticed that one of my scripts
broke because the output of lsusb (from usbutils 007) got changed.
I bisected it to commit 6853291 which added hotplug support to the Linux
backend. For now I am using `sort` to get some of devices sorted by bus number,
originally I blamed a new kernel version, so some more details are available on
http://www.spinics.net/lists/linux-input/msg26954.html. (FWIW, `lsusb -t`'s
output does not change in 1.0.16)
lsusb.bad.txt (from 1.0.16)
```
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
```
lsusb.good.txt (from 1.0.15)
```
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
```
File `bisecter` as used in `git bisect run ../bisecter`
```sh
#!/bin/sh
./bootstrap.sh &&
./configure --prefix=/usr --disable-static ||
exit 128 # oops!
make || exit 128
LD_LIBRARY_PATH=libusb/.libs \
lsusb | tee ../lsusb.txt
if cmp -s ../lsusb.txt ../lsusb.good.txt; then
echo Good commit... $(git describe --always)
exit 0
elif cmp -s ../lsusb.txt ../lsusb.bad.txt; then
echo Bad commit... $(git describe --always)
exit 1
else
echo "Incomparable lsusb output"
exit 129
fi
````
---
Reply to this email directly or view it on GitHub:
https://github.com/libusbx/libusbx/issues/131
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel