From: Bert Vermeulen Date: Fri, 27 Jan 2012 07:21:58 +0000 (+0100) Subject: srd: add more debugging around probe mapping X-Git-Tag: libsigrokdecode-0.1.0~91 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ce46beed20cef3262cdf8a921fdf7632f0356227;p=libsigrokdecode.git srd: add more debugging around probe mapping --- 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;