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