diff options
author | Martin Szulecki | 2013-09-26 22:24:16 +0200 |
---|---|---|
committer | Martin Szulecki | 2013-09-26 22:24:16 +0200 |
commit | 6c329b7e20e7511e0be0445e6aeec46d588b2e4b (patch) | |
tree | 6d2f17541f9cf17be011a0fd00bf0863e6f2d1eb /src/libirecovery.c | |
parent | 8483da5dd7845d52de0f70221df39a690542f66a (diff) | |
download | libirecovery-6c329b7e20e7511e0be0445e6aeec46d588b2e4b.tar.gz libirecovery-6c329b7e20e7511e0be0445e6aeec46d588b2e4b.tar.bz2 |
Only enable libusb debugging output on verbose level 2 and higher
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r-- | src/libirecovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |