]> sigrok.org Git - libsigrok.git/commitdiff
Add debug spew to all sr_config_(get|set|list) calls.
authorBert Vermeulen <redacted>
Tue, 18 Nov 2014 14:46:59 +0000 (15:46 +0100)
committerBert Vermeulen <redacted>
Tue, 18 Nov 2014 14:46:59 +0000 (15:46 +0100)
src/hwdriver.c

index 81e7b588704fe30db6be3489288d02416dd9045f..c2ce6e6e2db6526b5e8f507abb186c4437075b3c 100644 (file)
@@ -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. */