summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-04-08 13:29:19 +0100
committerPete Batard <pbatard@gmail.com>2010-04-08 13:29:19 +0100
commit0145d9f15ad1c1f95afd2e372a50287c2269333e (patch)
tree766700be202b80c17e466860857ff2f9acaf1de1
parent31aff02b62549a3c47daea6f0093124cb8bfae7c (diff)
downloadlibusb-0145d9f15ad1c1f95afd2e372a50287c2269333e.tar.gz
added missing LOG_LEVEL_DEBUG filter for toggable debug (core)
-rw-r--r--libusb/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libusb/core.c b/libusb/core.c
index a0880d9..6391bea 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -1590,6 +1590,8 @@ void usbi_log_v(struct libusb_context *ctx, enum usbi_log_level level,
return;
if (level == LOG_LEVEL_INFO && ctx->debug < 3)
return;
+ if (level == LOG_LEVEL_DEBUG && ctx->debug < 4)
+ return;
#endif
switch (level) {