gregkh / usbutils

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

lsusb: don't complain on EAGAIN #128

Closed grundlerchromium closed 3 years ago

grundlerchromium commented 3 years ago

Given the requested decriptors are optional, seems like lsusb should NOT use perror() to communicate why it can't get the descriptors in question (output is directed to stderr, not stdout).

Further, if we were told to "come back later" (EGAIN), then it's really not an error.

Only emit this output when user adds "-vv" to the command line.

Signed-off-by: Grant Grundler grundler@chromium.org

gregkh commented 3 years ago

Thanks for splitting it up!

grundlerchromium commented 3 years ago

You are welcome - thanks for pulling! :) The EAGAIN output was causing scripts in our Chrome OS test lab to fail. One step closer to resolving that.