diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-26 15:55:00 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2017-02-26 17:39:15 +0100 |
commit | f98f41714fc5c7516f614e0d453f6226533d981d (patch) | |
tree | 503682e83b76887c70bb94041bea785e782c1554 | |
parent | 2f7bc9d2c4faa65bf1e8130d978c10c177f85444 (diff) | |
download | libsigrokdecode-f98f41714fc5c7516f614e0d453f6226533d981d.tar.gz libsigrokdecode-f98f41714fc5c7516f614e0d453f6226533d981d.zip |
srd_inst_decode(): Slightly more verbose error message.
-rw-r--r-- | instance.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |