summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-02-26 15:55:00 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-02-26 17:39:15 +0100
commitf98f41714fc5c7516f614e0d453f6226533d981d (patch)
tree503682e83b76887c70bb94041bea785e782c1554
parent2f7bc9d2c4faa65bf1e8130d978c10c177f85444 (diff)
downloadlibsigrokdecode-f98f41714fc5c7516f614e0d453f6226533d981d.tar.gz
libsigrokdecode-f98f41714fc5c7516f614e0d453f6226533d981d.zip
srd_inst_decode(): Slightly more verbose error message.
-rw-r--r--instance.c4
1 files changed, 3 insertions, 1 deletions
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;
}