debug libusbmuxd

This commit is contained in:
Nick Chan committed 2023-03-28 23:38:54 +08:00
1 parent 11b594bec6
commit 2a9f65c870
2 files changed
+8 -7

No files matched your search

+2
View File
@@ -364,8 +364,10 @@ int optparse(int argc, char* argv[]) {
}
}
if (verbose >= 2) setenv("LIBUSB_DEBUG", "1", 1);
if (verbose >= 3)
{
libusbmuxd_set_debug_level(verbose - 2);
irecv_set_debug_level(1);
setenv("LIBUSB_DEBUG", "2", 1);
}