From fbff319f0a65e2d87a609f77a32b26ef200a5215 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 23 Jul 2015 17:12:41 +0200 Subject: Slightly more verbose logging in srd_inst_decode(). --- instance.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'instance.c') diff --git a/instance.c b/instance.c index 5f0ce80..f99cd68 100644 --- a/instance.c +++ b/instance.c @@ -557,9 +557,11 @@ SRD_PRIV int srd_inst_decode(const struct srd_decoder_inst *di, PyObject *py_res; srd_logic *logic; - srd_dbg("Calling decode() on instance %s with %" PRIu64 " bytes " - "starting at sample %" PRIu64 ".", di->inst_id, inbuflen, - start_samplenum); + srd_dbg("Calling decode(), start sample %" PRIu64 ", end sample %" + PRIu64 " (%" PRIu64 " samples, %" PRIu64 " bytes, unitsize = " + "%d), instance %s.", start_samplenum, end_samplenum, + end_samplenum - start_samplenum, inbuflen, di->data_unitsize, + di->inst_id); /* Return an error upon unusable input. */ if (!di) { -- cgit v1.2.3-70-g09d2