ret = usbg_parse_gadgets(path, s);
if (ret != USBG_SUCCESS)
- ERRORNO("unable to parse %s\n", path);
+ ERROR("unable to parse %s\n", path);
return ret;
}
ret = usbg_init_state(path, s);
if (ret != USBG_SUCCESS) {
- ERRORNO("couldn't init gadget state\n");
+ ERROR("couldn't init gadget state\n");
usbg_free_state(s);
goto out;
}
*f = usbg_allocate_function(fpath, type, instance, g);
func = *f;
if (!func) {
- ERRORNO("allocating function\n");
+ ERROR("allocating function\n");
ret = USBG_ERROR_NO_MEM;
goto out;
}
*c = usbg_allocate_config(cpath, label, id, g);
conf = *c;
if (!conf) {
- ERRORNO("allocating configuration\n");
+ ERROR("allocating configuration\n");
ret = USBG_ERROR_NO_MEM;
goto out;
}