return NULL;
struct sr_dev_inst *sdi = g_malloc0(sizeof(struct sr_dev_inst));
- if (!sdi) {
- sr_err("no possible to allocate sr_dev_inst");
- return NULL;
- }
-
sdi->status = SR_ST_INACTIVE;
sdi->vendor = g_strdup("ipdbg.org");
sdi->model = g_strdup("IPDBG LA");
struct ipdbg_la_tcp *tcp;
tcp = g_malloc0(sizeof(struct ipdbg_la_tcp));
-
tcp->address = NULL;
tcp->port = NULL;
tcp->socket = -1;
devc->raw_sample_buf =
g_try_malloc(devc->limit_samples * devc->DATA_WIDTH_BYTES);
if (!devc->raw_sample_buf) {
- sr_warn("Sample buffer malloc failed.");
+ sr_err("Sample buffer malloc failed.");
return FALSE;
}
}