scanalogic2: Replace %i with %s where needed.
This commit is contained in:
parent
79914b3a62
commit
9526f2d4f8
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue