Commit 1acd15d7219ce22b2f95ec18b75858872ffb65b3
1 parent
cdf79ac5
rpiboot: Reduce libusb verbosity level with -v
The '-v' option is useful for debugging problems because it caues the file and transfer sizes to be emitted. However, on Windows libusb generates too much log spam hiding the useful information. Change USB log params so WARNINGS only appear with -vv. Windows / Cygwin uses the old API version so just implement the minimal change for now.
Showing
1 changed file
with
1 additions
and
1 deletions
main.c
| ... | ... | @@ -721,7 +721,7 @@ int main(int argc, char *argv[]) |
| 721 | 721 | } |
| 722 | 722 | |
| 723 | 723 | #if LIBUSBX_API_VERSION < 0x01000106 |
| 724 | - libusb_set_debug(ctx, verbose ? LIBUSB_LOG_LEVEL_WARNING : 0); | |
| 724 | + libusb_set_debug(ctx, (verbose == 2)? LIBUSB_LOG_LEVEL_WARNING : 0); | |
| 725 | 725 | #else |
| 726 | 726 | libusb_set_option( |
| 727 | 727 | ctx, | ... | ... |