From: Uwe Hermann Date: Tue, 11 Jun 2013 16:55:47 +0000 (+0200) Subject: scanalogic2: Replace %i with %s where needed. X-Git-Tag: libsigrok-0.2.1~68 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9526f2d4f80968e9b2d00442fd4705d6902db589;p=libsigrok.git scanalogic2: Replace %i with %s where needed. --- diff --git a/hardware/ikalogic-scanalogic2/api.c b/hardware/ikalogic-scanalogic2/api.c index 501a58fe..91512082 100644 --- a/hardware/ikalogic-scanalogic2/api.c +++ b/hardware/ikalogic-scanalogic2/api.c @@ -234,7 +234,7 @@ static int dev_open(struct sr_dev_inst *sdi) if (libusb_kernel_driver_active(usb->devhdl, USB_INTERFACE) == 1) { ret = libusb_detach_kernel_driver(usb->devhdl, USB_INTERFACE); if (ret < 0) { - sr_err("Failed to detach kernel driver: %i.", + sr_err("Failed to detach kernel driver: %s.", libusb_error_name(ret)); return SR_ERR; } diff --git a/hardware/ikalogic-scanalogic2/protocol.c b/hardware/ikalogic-scanalogic2/protocol.c index 75c78aca..d1fb3beb 100644 --- a/hardware/ikalogic-scanalogic2/protocol.c +++ b/hardware/ikalogic-scanalogic2/protocol.c @@ -655,7 +655,7 @@ SR_PRIV int sl2_get_device_info(struct sr_usb_dev_inst usb, USB_INTERFACE); if (ret < 0) { - sr_err("Failed to detach kernel driver: %i.", + sr_err("Failed to detach kernel driver: %s.", libusb_error_name(ret)); libusb_close(usb.devhdl); return SR_ERR; @@ -734,7 +734,7 @@ SR_PRIV int sl2_get_device_info(struct sr_usb_dev_inst usb, ret = libusb_release_interface(usb.devhdl, USB_INTERFACE); if (ret < 0) { - sr_err("Failed to release interface: %i.", + sr_err("Failed to release interface: %s.", libusb_error_name(ret)); libusb_close(usb.devhdl); return SR_ERR;