diff options
author | ShengYi Hung <aokblast@FreeBSD.org> | 2025-06-04 09:57:30 +0000 |
---|---|---|
committer | ShengYi Hung <aokblast@FreeBSD.org> | 2025-07-09 02:19:47 +0000 |
commit | bca5df45652ae4edd14fa032be8f271e044d32b2 (patch) | |
tree | 11f3a968a62a4581b1034653245287b986002a47 /libevent/(public-mirror) | |
parent | 0849d876b1ac414e55643e408464be63bc9b1a71 (diff) |
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
Diffstat (limited to 'libevent/(public-mirror)')
0 files changed, 0 insertions, 0 deletions