]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Make two log messages more specific.
authorUwe Hermann <redacted>
Sun, 22 Apr 2018 14:49:33 +0000 (16:49 +0200)
committerUwe Hermann <redacted>
Sun, 22 Apr 2018 14:49:33 +0000 (16:49 +0200)
Slightly modified version of a suggested change by Aleksander Alsekseev.

src/hardware/rigol-ds/protocol.c

index d21008b66b0586a8c8a6e6802ca98f0dc660f43d..453ab658edf21444fc85ba1caa751cd26dfdac4f 100644 (file)
@@ -631,7 +631,7 @@ SR_PRIV int rigol_ds_receive(int fd, int revents, void *cb_data)
                                /* Still reading the header. */
                                return TRUE;
                        if (len == -1) {
-                               sr_err("Read error, aborting capture.");
+                               sr_err("Error while reading block header, aborting capture.");
                                packet.type = SR_DF_FRAME_END;
                                sr_session_send(sdi, &packet);
                                sr_dev_acquisition_stop(sdi);
@@ -664,7 +664,7 @@ SR_PRIV int rigol_ds_receive(int fd, int revents, void *cb_data)
        len = sr_scpi_read_data(scpi, (char *)devc->buffer, len);
 
        if (len == -1) {
-               sr_err("Read error, aborting capture.");
+               sr_err("Error while reading block data, aborting capture.");
                packet.type = SR_DF_FRAME_END;
                sr_session_send(sdi, &packet);
                sr_dev_acquisition_stop(sdi);