gregkh / usbutils

USB utilities for Linux, including lsusb
http://www.linux-usb.org
356 stars 202 forks source link

lsusb: Fix name read from sysfs. #108

Closed t123yh closed 3 years ago

t123yh commented 4 years ago

If a device is connected to a hub, the correct port number in sysfs should be like a.b.c (the port number on their respective hubs), as attached in the screenshot. The current implementation only takes the last port number into consideration, thus returning wrong results. Fix it by using libusb libusb_get_port_numbers API.

Screenshot_20200722_124856

gregkh commented 3 years ago

Should now be fixed with other commit that was just merged, #110

gregkh commented 3 years ago

If not, please let me know.