summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/xusb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/xusb.c b/examples/xusb.c
index fdb6ecf..002c9ad 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -853,8 +853,8 @@ main(int argc, char** argv)
if (r < 0)
return r;
- if (debug_mode)
- libusb_set_debug(NULL, 3);
+ // Warnings = 2, Debug = 4
+ libusb_set_debug(NULL, debug_mode?4:2);
test_device(VID, PID);