summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-27 08:21:58 +0100
committerBert Vermeulen <bert@biot.com>2012-01-27 08:21:58 +0100
commitce46beed20cef3262cdf8a921fdf7632f0356227 (patch)
treed6200c5546408536d3c466a15b45498e349e9e32
parent568112ce6de82135b0bfd7b5319ffdd611e6b030 (diff)
downloadlibsigrokdecode-ce46beed20cef3262cdf8a921fdf7632f0356227.tar.gz
libsigrokdecode-ce46beed20cef3262cdf8a921fdf7632f0356227.zip
srd: add more debugging around probe mapping
-rw-r--r--controller.c4
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;