This is an automated email from Gerrit. Taiki Mineno ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4546
-- gerrit commit 184f58a7bad3fc37805fabd1e825613bbe574cab Author: Taiki Mineno <[email protected]> Date: Sun Jun 3 22:01:23 2018 +0900 topic: Fixed a deprecated function in XDS110 JTAG driver libusb-1.0.22 marked libusb_set_debug deprecated. It was replaced with libusb_set_option. Fixed XDS110 JTAG driver source to avoid compile error due to this deprecation. Change-Id: Iecf308ed59bdef13c6325b1823d6b32e2d160dd7 Signed-off-by: Taiki Mineno <[email protected]> diff --git a/src/jtag/drivers/xds110.c b/src/jtag/drivers/xds110.c index 90b6990..a82a4f9 100644 --- a/src/jtag/drivers/xds110.c +++ b/src/jtag/drivers/xds110.c @@ -367,8 +367,11 @@ static bool usb_connect(void) /* Set libusb to auto detach kernel and disable debug messages */ (void)libusb_set_auto_detach_kernel_driver(dev, 1); - libusb_set_debug(ctx, LIBUSB_LOG_LEVEL_NONE); - + #if LIBUSB_API_VERSION >= 0x01000106 + libusb_set_option(ctx, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_NONE); + #else + libusb_set_debug(ctx, LIBUSB_LOG_LEVEL_NONE); + #endif /* Claim the debug interface on the XDS110 */ result = libusb_claim_interface(dev, INTERFACE_DEBUG); } else { -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
