diff options
author | Bert Vermeulen <bert@biot.com> | 2012-01-27 08:21:58 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2012-01-27 08:21:58 +0100 |
commit | ce46beed20cef3262cdf8a921fdf7632f0356227 (patch) | |
tree | d6200c5546408536d3c466a15b45498e349e9e32 | |
parent | 568112ce6de82135b0bfd7b5319ffdd611e6b030 (diff) | |
download | libsigrokdecode-ce46beed20cef3262cdf8a921fdf7632f0356227.tar.gz libsigrokdecode-ce46beed20cef3262cdf8a921fdf7632f0356227.zip |
srd: add more debugging around probe mapping
-rw-r--r-- | controller.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/controller.c b/controller.c index e325e0a..ac0d73f 100644 --- a/controller.c +++ b/controller.c @@ -306,6 +306,9 @@ int srd_instance_set_probes(struct srd_decoder_instance *di, int *new_probemap, new_probenum; char *probe_id, *probenum_str; + srd_dbg("set probes called for instance %s with list of %d probes", + di->instance_id, g_hash_table_size(new_probes)); + if (g_hash_table_size(new_probes) == 0) /* No probes provided. */ return SRD_OK; @@ -347,6 +350,7 @@ int srd_instance_set_probes(struct srd_decoder_instance *di, } p = sl->data; new_probemap[p->order] = new_probenum; + srd_dbg("setting probe mapping for %d = probe %d", p->order, new_probenum); } g_free(di->dec_probemap); di->dec_probemap = new_probemap; |