freebsd-skq/lib/libusb
kevans 623ef093b2 libusb: LIBUSB_DEBUG environment variable override of libusb_set_debug
The debug level generally just controls verbosity of libusb for debugging
libusb devices/usage. We allow the environment to set the debug level
independent of the application, but the application will always override
this if it explicitly sets the debug level.

Changing the environment is easy, but patching the software to change the
debug level isn't necessarily easy or possible. Further, there's this
write-only debug_fixed variable that would seem to imply that the debug
level should be fixed, but it isn't currently used. Change the logic to use
strtol() so we can detect real 0 vs. conversion failure, then honor
debug_fixed in libusb_set_debug.

Reviewed by:	hselasky
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D21877
2019-10-02 15:19:39 +00:00
..
libusb01.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libusb10_desc.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libusb10_hotplug.c Only call libusb_hotplug_enumerate() once from libusb_hotplug_register_callback(). 2019-06-26 12:04:54 +00:00
libusb10_io.c When multiple threads are involved receiving completion events in LibUSB 2018-09-28 10:28:22 +00:00
libusb10.c libusb: LIBUSB_DEBUG environment variable override of libusb_set_debug 2019-10-02 15:19:39 +00:00
libusb10.h Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently all 2019-06-26 11:28:08 +00:00
libusb20_desc.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libusb20_desc.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libusb20_int.h Allow the libusb20_dev_get_port_path() function to be called when the 2018-03-23 09:40:41 +00:00
libusb20_ugen20.c Allow the libusb20_dev_get_port_path() function to be called when the 2018-03-23 09:40:41 +00:00
libusb20.3
libusb20.c Fix for reading the configuration descriptor in libusb. Catch invalid 2019-06-08 09:34:02 +00:00
libusb20.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libusb_global_linux.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libusb-0.1.pc
libusb-1.0.pc
libusb-2.0.pc
libusb.3 libusb(3): Update the link to the libusb homepage. 2018-10-11 13:58:51 +00:00
libusb.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
Makefile pkgbase: Create a FreeBSD-utilities package and make it the default one 2019-09-05 14:15:47 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
usb.h lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00