ret = libusb_control_transfer(hdl, LIBUSB_REQUEST_TYPE_VENDOR, 0xa0,
0xe600, 0x0000, buf, 1, 100);
if (ret < 0)
- sr_err("Unable to send control request: %s",
+ sr_err("Unable to send control request: %s.",
libusb_error_name(ret));
return ret;
LIBUSB_ENDPOINT_OUT, 0xa0, offset,
0x0000, buf, chunksize, 100);
if (ret < 0) {
- sr_err("Unable to send firmware to device: %s",
+ sr_err("Unable to send firmware to device: %s.",
libusb_error_name(ret));
result = SR_ERR;
break;
libusb_get_bus_number(dev), libusb_get_device_address(dev));
if ((ret = libusb_open(dev, &hdl)) < 0) {
- sr_err("ezusb: failed to open device: %s",
- libusb_error_name(ret));
+ sr_err("failed to open device: %s.", libusb_error_name(ret));
return SR_ERR;
}
DSO_EP_OUT | LIBUSB_ENDPOINT_OUT,
cmdstring, sizeof(cmdstring),
&tmp, 100)) != 0) {
- sr_err("Failed to set filters: %s",
- libusb_error_name(ret));
+ sr_err("Failed to set filters: %s.", libusb_error_name(ret));
return SR_ERR;
}
sr_dbg("Sent CMD_SET_FILTERS.");
DSO_EP_OUT | LIBUSB_ENDPOINT_OUT,
cmdstring, sizeof(cmdstring),
&tmp, 100)) != 0) {
- sr_err("Failed to set voltage: %s.",
- libusb_error_name(ret));
+ sr_err("Failed to set voltage: %s.", libusb_error_name(ret));
return SR_ERR;
}
sr_dbg("Sent CMD_SET_VOLTAGE.");
if ((ret = libusb_control_transfer(devc->usb->devhdl,
LIBUSB_REQUEST_TYPE_VENDOR, CTRL_SETRELAYS,
0, 0, relays, 17, 100)) != sizeof(relays)) {
- sr_err("Failed to set relays: %s.",
- libusb_error_name(ret));
+ sr_err("Failed to set relays: %s.", libusb_error_name(ret));
return SR_ERR;
}
sr_dbg("Sent CTRL_SETRELAYS.");
if ((ret = libusb_control_transfer(devc->usb->devhdl,
LIBUSB_REQUEST_TYPE_VENDOR, CTRL_SETOFFSET,
0, 0, offsets, sizeof(offsets), 100)) != sizeof(offsets)) {
- sr_err("Failed to set offsets: %s.",
- libusb_error_name(ret));
+ sr_err("Failed to set offsets: %s.", libusb_error_name(ret));
return SR_ERR;
}
sr_dbg("Sent CTRL_SETOFFSET.");
DSO_EP_OUT | LIBUSB_ENDPOINT_OUT,
cmdstring, sizeof(cmdstring),
&tmp, 100)) != 0) {
- sr_err("Failed to enable trigger: %s.",
- libusb_error_name(ret));
+ sr_err("Failed to enable trigger: %s.", libusb_error_name(ret));
return SR_ERR;
}
DSO_EP_OUT | LIBUSB_ENDPOINT_OUT,
cmdstring, sizeof(cmdstring),
&tmp, 100)) != 0) {
- sr_err("Failed to force trigger: %s.",
- libusb_error_name(ret));
+ sr_err("Failed to force trigger: %s.", libusb_error_name(ret));
return SR_ERR;
}