]> sigrok.org Git - libsigrok.git/commitdiff
rigol-ds: Improve a log message.
authorUwe Hermann <redacted>
Thu, 31 May 2018 17:17:52 +0000 (19:17 +0200)
committerUwe Hermann <redacted>
Fri, 22 Jun 2018 17:20:44 +0000 (19:20 +0200)
src/hardware/rigol-ds/protocol.c

index 8e12990173dbe8e5e95c82122e127c534fd5c499..fed85861ffe72514ae2d0849738397e22ba3657d 100644 (file)
@@ -337,8 +337,12 @@ SR_PRIV int rigol_ds_capture_start(const struct sr_dev_inst *sdi)
        if (!(devc = sdi->priv))
                return SR_ERR;
 
-       sr_dbg("Starting data capture for frameset %" PRIu64 " of %" PRIu64,
-              devc->num_frames + 1, devc->limit_frames);
+       if (devc->limit_frames == 0)
+               sr_dbg("Starting data capture for frameset %" PRIu64,
+                      devc->num_frames + 1);
+       else
+               sr_dbg("Starting data capture for frameset %" PRIu64 " of %"
+                      PRIu64, devc->num_frames + 1, devc->limit_frames);
 
        switch (devc->model->series->protocol) {
        case PROTOCOL_V1: