zeroplus-logic-cube: Only emit log message upon unexpected number of bytes.
This commit is contained in:
parent
2377246220
commit
11cf492183
|
@ -547,7 +547,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
|
||||||
unsigned int buf_offset;
|
unsigned int buf_offset;
|
||||||
|
|
||||||
res = analyzer_read_data(usb->devhdl, buf, PACKET_SIZE);
|
res = analyzer_read_data(usb->devhdl, buf, PACKET_SIZE);
|
||||||
sr_info("Tried to read %d bytes, actually read %d bytes.",
|
if (res != PACKET_SIZE)
|
||||||
|
sr_warn("Tried to read %d bytes, actually read %d.",
|
||||||
PACKET_SIZE, res);
|
PACKET_SIZE, res);
|
||||||
|
|
||||||
if (discard >= PACKET_SIZE / 4) {
|
if (discard >= PACKET_SIZE / 4) {
|
||||||
|
|
Loading…
Reference in New Issue