From: Bert Vermeulen Date: Tue, 18 Nov 2014 14:46:59 +0000 (+0100) Subject: Add debug spew to all sr_config_(get|set|list) calls. X-Git-Tag: libsigrok-0.4.0~753 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=db6fa867a4bec0a1dc0742281df3ab7bd76787d2;p=libsigrok.git Add debug spew to all sr_config_(get|set|list) calls. --- diff --git a/src/hwdriver.c b/src/hwdriver.c index 81e7b588..c2ce6e6e 100644 --- a/src/hwdriver.c +++ b/src/hwdriver.c @@ -442,6 +442,8 @@ static int check_key(const struct sr_dev_driver *driver, return SR_ERR_ARG; } opstr = op == SR_CONF_GET ? "get" : op == SR_CONF_SET ? "set" : "list"; + sr_spew("sr_config_%s(): key %d (%s) sdi %p cg %s", opstr, key, + srci->id, sdi, cg ? cg->name : "NULL"); if (sr_config_list(driver, sdi, cg, SR_CONF_DEVICE_OPTIONS, &gvar_opts) != SR_OK) { /* Driver publishes no options. */