commit | b1c31712134d2b28877bbe01de1526a256ca676c | [log] [tgz] |
---|---|---|
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Oct 15 16:07:17 2021 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Oct 15 16:07:17 2021 +0200 |
tree | 981b4814d8656bd9972d6a7d75c1fd65ed45de51 | |
parent | 9b5f18e2df341f0e90cfc4e03d27ef11080adaaf [diff] |
usb-devices: use 'local' variable type to handle recursion When recursing into a long USB tree, the local variables in the print_device() function would get confused and take on the value of the previous device it printed. This caused devices to not get printed out at all, the exact opposite of what we wanted. Resolve this by using the non-POSIX 'local' variable declaration. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This is a collection of USB tools for use on Linux and BSD systems to query what type of USB devices are connected to the system. This is to be run on a USB host (i.e. a machine you plug USB devices into), not on a USB device (i.e. a device you plug into a USB host.)
Note, usbutils depends on libusb, be sure that library is properly installed first.
To work with the “raw” repo, after cloning it just do:
./autogen.sh
Or if you like doing things “by hand” you can try the following:
Get the usbhid-dump git submodule:
git submodule init git submodule update
Initialize autobuild with:
autoreconf --install --symlink
Configure the project with:
./configure
Build everything with:
make
Install it, if you really want to, with:
make install