opnsense-src/lib/libusb
ShengYi Hung bca5df4565 libusb: replace LOG_LEVEL with DEBUG_LEVEL
The libusb set debug level by libusb_log_level instead of
libusb_debug_level. We switch to libusb_log_level for better
compatibility with the upstream libusb.

Additionally, The upstream libusb has an option allows user to override the log
function with a user-defined callback.
To support the callback function with a single string without va_arg, we
refactor the log facility as a function instead of a macro and parse all
va_args inside.

The legacy debug_level enum has been removed to enforce maintainer migrate from their
deprecated source code.

Reviewed by:    kevans
Approved by:    markj (mentor), lwhsu (mentor)
MFC after:      2 weeks
Sponsored by:   FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50680
2025-07-08 22:19:47 -04:00
..
libusb-0.1.pc.in Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libusb-1.0.pc.in libusb: claim to be version 1.0.16 2024-06-28 12:18:34 -04:00
libusb-2.0.pc.in Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
libusb.3 libusb: implement libusb_get_parent 2025-06-12 11:56:31 -05:00
libusb.h libusb: replace LOG_LEVEL with DEBUG_LEVEL 2025-07-08 22:19:47 -04:00
libusb01.c libusb: add SUPER_PLUS in speed enum. 2025-05-15 20:30:32 +02:00
libusb10.c libusb: replace LOG_LEVEL with DEBUG_LEVEL 2025-07-08 22:19:47 -04:00
libusb10.h libusb: replace LOG_LEVEL with DEBUG_LEVEL 2025-07-08 22:19:47 -04:00
libusb10_desc.c libusb: rename bNumDeviceCapabilities to bNumDeviceCaps for compatibility with libusb 2025-07-08 11:11:41 -04:00
libusb10_hotplug.c libusb: consider bad fd as a broken event 2025-06-25 14:40:02 +02:00
libusb10_io.c libusb: replace LOG_LEVEL with DEBUG_LEVEL 2025-07-08 22:19:47 -04:00
libusb20.3 libusb: add SUPER_PLUS in speed enum. 2025-05-15 20:30:32 +02:00
libusb20.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libusb20.h libusb: add SUPER_PLUS in speed enum. 2025-05-15 20:30:32 +02:00
libusb20_desc.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libusb20_desc.h libusb: rename bNumDeviceCapabilities to bNumDeviceCaps for compatibility with libusb 2025-07-08 11:11:41 -04:00
libusb20_int.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libusb20_ugen20.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
libusb_global_linux.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
usb.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00