Add debug spew to all sr_config_(get|set|list) calls.

This commit is contained in:
Bert Vermeulen 2014-11-18 15:46:59 +01:00
parent cf3db38193
commit db6fa867a4
1 changed files with 2 additions and 0 deletions

View 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. */