]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd_inst_decode(): Slightly more verbose error message.
authorUwe Hermann <redacted>
Sun, 26 Feb 2017 14:55:00 +0000 (15:55 +0100)
committerUwe Hermann <redacted>
Sun, 26 Feb 2017 16:39:15 +0000 (17:39 +0100)
instance.c

index 6c54d8d16c83f62ce1db75b6b2653216ff394907..e80afd751469b7fb6d81acac51cdff3591131019 100644 (file)
@@ -1012,7 +1012,9 @@ SRD_PRIV int srd_inst_decode(struct srd_decoder_inst *di,
 
        if (abs_start_samplenum != di->abs_cur_samplenum ||
            abs_end_samplenum < abs_start_samplenum) {
-               srd_dbg("incorrect sample numbers");
+               srd_dbg("Incorrect sample numbers: start=%" PRIu64 ", cur=%"
+                       PRIu64 ", end=%" PRIu64 ".", abs_start_samplenum,
+                       di->abs_cur_samplenum, abs_end_samplenum);
                return SRD_ERR_ARG;
        }