From 9526f2d4f80968e9b2d00442fd4705d6902db589 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 11 Jun 2013 18:55:47 +0200 Subject: [PATCH] scanalogic2: Replace %i with %s where needed. --- hardware/ikalogic-scanalogic2/api.c | 2 +- hardware/ikalogic-scanalogic2/protocol.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;