From: Thomas Tsou Date: Fri, 9 Oct 2009 19:10:13 +0000 (-0400) Subject: usrp: Enable debug output X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=665e6c8dce582e4ba02997f8b93d48c107009554;p=debian%2Fgnuradio usrp: Enable debug output This only works if libusb-1.0 is compiled with debug logging. --- diff --git a/usrp/host/lib/usrp_prims_libusb1.cc b/usrp/host/lib/usrp_prims_libusb1.cc index e755c1d4..4e300479 100644 --- a/usrp/host/lib/usrp_prims_libusb1.cc +++ b/usrp/host/lib/usrp_prims_libusb1.cc @@ -143,6 +143,10 @@ usrp_one_time_init (libusb_context **ctx) if ((ret = libusb_init (ctx)) < 0) fprintf (stderr, "usrp: libusb_init failed: %s\n", _get_usb_error_str(ret)); + + // Set debug verbosity to max. This will only work if the debug option is + // compiled into libusb. Otherwise this call does nothing. + libusb_set_debug(*ctx, 3); } void