]> sigrok.org Git - libsigrokdecode.git/commitdiff
Slightly more verbose logging in srd_inst_decode().
authorUwe Hermann <redacted>
Thu, 23 Jul 2015 15:12:41 +0000 (17:12 +0200)
committerUwe Hermann <redacted>
Thu, 23 Jul 2015 15:12:41 +0000 (17:12 +0200)
instance.c
session.c

index 5f0ce80b8bab784d226bc4f4e92c54f76709ca7b..f99cd684e8d7afc1610168fe3ff1a1130c319aac 100644 (file)
@@ -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) {
index 0c864059f60af76ae28e168dd4a29ba308ef1850..8b8866046b3224f3b39542f65f63049acb5205d4 100644 (file)
--- a/session.c
+++ b/session.c
@@ -238,10 +238,6 @@ SRD_API int srd_session_send(struct srd_session *sess,
                return SRD_ERR_ARG;
        }
 
-       srd_dbg("Calling decode() on all instances with starting sample "
-                       "number %" PRIu64 ", %" PRIu64 " bytes at 0x%p",
-                       start_samplenum, inbuflen, inbuf);
-
        for (d = sess->di_list; d; d = d->next) {
                if ((ret = srd_inst_decode(d->data, start_samplenum,
                                end_samplenum, inbuf, inbuflen)) != SRD_OK)