2ab8de8...
by
Daniele Pezzini <email address hidden>
bcmxcp_usb: call exit() on libusb fatal errors
b283b19...
by
Daniele Pezzini <email address hidden>
nutdrv_atcl_usb: call exit() on libusb fatal errors
Also, remove some duplication in upsdrv_shutdown().
adede06...
by
Daniele Pezzini <email address hidden>
richcomm_usb: call exit() on libusb fatal errors
74e84aa...
by
Daniele Pezzini <email address hidden>
riello_usb: call exit() on libusb fatal errors
0e3755a...
by
Daniele Pezzini <email address hidden>
blazer_usb: call exit() on libusb fatal errors
499671a...
by
Daniele Pezzini <email address hidden>
nutdrv_qx: call exit() on libusb fatal errors
35d9b4b...
by
Daniele Pezzini <email address hidden>
libshut: call exit() on fatal errors
Also, align to nut_libusb the debug output of {g,s}et_report(), get_{string,interrupt}().
da121be...
by
Daniele Pezzini <email address hidden>
libusb: call exit() on fatal errors
4002b56...
by
Daniele Pezzini <email address hidden>
libusb: in open(), allow callers to call exit()
When searching for a supported device, we let callers do some things on their own to tell us if they accept or not a device, by calling the provided callback() function.
But in case that function calls exit(), we can't properly free() resources that are not visible outside the open() function, such as the list of USB devices.
So, make the list a global, and make sure to actually free() it when deinitialising.
5e10793...
by
Daniele Pezzini <email address hidden>
libusb: mark switch cases that fall through
In drivers that use libusb, where switch'ing on a LIBUSB_ERROR code, explicit the intention of falling through to the next case.
Also, to do so, use the not-pretty-but-easily-recognisable /* FALLTHRU */ format for the comment (which should also please gcc 7-ish, in case anyone is passing, directly or indirectly, -Wimplicit-fallthrough= upto 4), in case, in future, we decide to move to something else (e.g. attributes).