diff options
author | Ludovic Rousseau <ludovic.rousseau@free.fr> | 2023-05-09 22:14:05 +0200 |
---|---|---|
committer | Ludovic Rousseau <ludovic.rousseau@free.fr> | 2023-05-09 22:47:27 +0200 |
commit | 3bace666b72ca120587e12acc4b3547bb8e3fa32 (patch) | |
tree | 11f8aa0297a1f905e836047106fa6d1597febcff | |
parent | 7c169b8f141c8fc2512af2d9f5efd6c2411b7321 (diff) | |
download | libusb-3bace666b72ca120587e12acc4b3547bb8e3fa32.tar.gz |
Fix build error with --enable-debug-log
The error is:
core.c:2451:8: error: no member named 'debug' in 'struct libusb_context'
_ctx->debug = LIBUSB_LOG_LEVEL_NONE;
~~~~ ^
Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
-rw-r--r-- | libusb/core.c | 2 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/core.c b/libusb/core.c index 23ab43b..a0248d1 100644 --- a/libusb/core.c +++ b/libusb/core.c @@ -2448,8 +2448,8 @@ int API_EXPORTED libusb_init_context(libusb_context **ctx, const struct libusb_i return LIBUSB_ERROR_NO_MEM; } - _ctx->debug = LIBUSB_LOG_LEVEL_NONE; #if defined(ENABLE_LOGGING) && !defined(ENABLE_DEBUG_LOGGING) + _ctx->debug = LIBUSB_LOG_LEVEL_NONE; if (getenv("LIBUSB_DEBUG")) { _ctx->debug = get_env_debug_level(); _ctx->debug_fixed = 1; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index ab21611..6fd8422 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11794 +#define LIBUSB_NANO 11795 |