sr_err("sigma: ftdi_write_data failed: %s",
ftdi_get_error_string(&ctx->ftdic));
} else if ((size_t) ret != size) {
- sr_err("sigma: ftdi_write_data did not complete write\n");
+ sr_err("sigma: ftdi_write_data did not complete write.");
}
return ret;
g_free(compressed_buf);
g_free(firmware);
sr_err("sigma: Could not unpack Sigma firmware. "
- "(Error %d)\n", ret);
+ "(Error %d).", ret);
return SR_ERR;
}
if (offset != *buf_size) {
g_free(*buf);
sr_err("sigma: Error reading firmware %s "
- "offset=%ld, file_size=%ld, buf_size=%zd\n",
+ "offset=%ld, file_size=%ld, buf_size=%zd.",
filename, offset, file_size, *buf_size);
return SR_ERR;
ret = libusb_control_transfer(devh, CTRL_OUT, 0xc, REQ_WRITEADDR,
0, packet, 1, TIMEOUT);
if (ret != 1)
- sr_err("zp: %s: libusb_control_transfer returned %d\n",
+ sr_err("zp: %s: libusb_control_transfer returned %d.",
__func__, ret);
return ret;
}
ret = libusb_control_transfer(devh, CTRL_OUT, 0xc, REQ_WRITEDATA,
0, packet, 1, TIMEOUT);
if (ret != 1)
- sr_err("zp: %s: libusb_control_transfer returned %d\n",
+ sr_err("zp: %s: libusb_control_transfer returned %d.",
__func__, ret);
return ret;
}
0, packet, 1, TIMEOUT);
if (ret != 1)
sr_err("zp: %s: libusb_control_transfer returned %d, "
- "val=%hhx\n", __func__, ret, packet[0]);
+ "val=%hhx.", __func__, ret, packet[0]);
return (ret == 1) ? packet[0] : ret;
}
ret = libusb_control_transfer(devh, CTRL_OUT, 0x4, REQ_READBULK,
0, packet, 8, TIMEOUT);
if (ret != 8)
- sr_err("zp: %s: libusb_control_transfer returned %d\n",
+ sr_err("zp: %s: libusb_control_transfer returned %d.",
__func__, ret);
ret = libusb_bulk_transfer(devh, EP1_BULK_IN, buffer, size,
&transferred, TIMEOUT);
if (ret < 0)
- sr_err("zp: Bulk read error %d\n", ret);
+ sr_err("zp: Bulk read error %d.", ret);
return transferred;
}
}
if (probenum < 1 || probenum > max_probes) {
- sr_err("strutil: Invalid probe (%d).\n", probenum);
+ sr_err("strutil: Invalid probe (%d).", probenum);
error = TRUE;
break;
}
for (tc = ++trigger; *tc; tc++) {
if (strchr(trigger_types, *tc) == NULL) {
sr_err("strutil: Unsupported trigger "
- "type '%c'.\n", *tc);
+ "type '%c'.", *tc);
error = TRUE;
break;
}