switch (info_id) {
/* TODO */
default:
+ sr_err("${short}: Unknown info_id: %d.", info_id);
return SR_ERR_ARG;
}
{
int ret;
- if (sdi->status != SR_ST_ACTIVE)
+ if (sdi->status != SR_ST_ACTIVE) {
+ sr_err("${short}: Device inactive, can't set config options.");
return SR_ERR;
+ }
ret = SR_OK;
switch (hwcap) {
/* TODO */
default:
+ sr_err("${short}: Unknown hardware capability: %d.", hwcap);
ret = SR_ERR_ARG;
}
{
(void)cb_data;
- if (sdi->status != SR_ST_ACTIVE)
+ if (sdi->status != SR_ST_ACTIVE) {
+ sr_err("${short}: Device inactive, can't stop acquisition.");
return SR_ERR;
+ }
/* TODO */