]> sigrok.org Git - libsigrok.git/commitdiff
scanalogic2: Replace %i with %s where needed.
authorUwe Hermann <redacted>
Tue, 11 Jun 2013 16:55:47 +0000 (18:55 +0200)
committerUwe Hermann <redacted>
Tue, 11 Jun 2013 16:39:54 +0000 (18:39 +0200)
hardware/ikalogic-scanalogic2/api.c
hardware/ikalogic-scanalogic2/protocol.c

index 501a58fed47ad8199864df81fb649c15020e8e1a..915120825a885f04c8f434216b09397cd0ec8e73 100644 (file)
@@ -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;
                }
index 75c78aca24c45b0ca611a58d2d396c7fc9ba4273..d1fb3beb763ebee85424368f75512d2527e8310e 100644 (file)
@@ -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;