From 6c329b7e20e7511e0be0445e6aeec46d588b2e4b Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 26 Sep 2013 22:24:16 +0200 Subject: Only enable libusb debugging output on verbose level 2 and higher --- src/libirecovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libirecovery.c b/src/libirecovery.c index 6f155e5..54af81d 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -817,7 +817,7 @@ void irecv_set_debug_level(int level) { libirecovery_debug = level; #ifndef WIN32 if(libirecovery_context) { - libusb_set_debug(libirecovery_context, libirecovery_debug); + libusb_set_debug(libirecovery_context, libirecovery_debug > 2 ? 1: 0); } #endif } -- cgit v1.1-32-gdbae