From: Uwe Hermann Date: Sun, 26 Feb 2017 14:55:00 +0000 (+0100) Subject: srd_inst_decode(): Slightly more verbose error message. X-Git-Tag: libsigrokdecode-0.5.0~74 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f98f41714fc5c7516f614e0d453f6226533d981d;p=libsigrokdecode.git srd_inst_decode(): Slightly more verbose error message. --- diff --git a/instance.c b/instance.c index 6c54d8d..e80afd7 100644 --- a/instance.c +++ b/instance.c @@ -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; }