nodeDeviceUnlock(driver);
if (!obj) {
- virNodeDeviceReportError(VIR_ERR_NO_NODE_DEVICE, NULL);
+ virReportError(VIR_ERR_NO_NODE_DEVICE, NULL);
goto cleanup;
}
nodeDeviceUnlock(driver);
if (!obj) {
- virNodeDeviceReportError(VIR_ERR_NO_NODE_DEVICE,
- _("no node device with matching name '%s'"),
- dev->name);
+ virReportError(VIR_ERR_NO_NODE_DEVICE,
+ _("no node device with matching name '%s'"),
+ dev->name);
goto cleanup;
}
nodeDeviceUnlock(driver);
if (!obj) {
- virNodeDeviceReportError(VIR_ERR_NO_NODE_DEVICE,
- _("no node device with matching name '%s'"),
- dev->name);
+ virReportError(VIR_ERR_NO_NODE_DEVICE,
+ _("no node device with matching name '%s'"),
+ dev->name);
goto cleanup;
}
if (!ret)
virReportOOMError();
} else {
- virNodeDeviceReportError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("no parent for this device"));
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ "%s", _("no parent for this device"));
}
cleanup:
nodeDeviceUnlock(driver);
if (!obj) {
- virNodeDeviceReportError(VIR_ERR_NO_NODE_DEVICE,
- _("no node device with matching name '%s'"),
- dev->name);
+ virReportError(VIR_ERR_NO_NODE_DEVICE,
+ _("no node device with matching name '%s'"),
+ dev->name);
goto cleanup;
}
nodeDeviceUnlock(driver);
if (!obj) {
- virNodeDeviceReportError(VIR_ERR_NO_NODE_DEVICE,
- _("no node device with matching name '%s'"),
- dev->name);
+ virReportError(VIR_ERR_NO_NODE_DEVICE,
+ _("no node device with matching name '%s'"),
+ dev->name);
goto cleanup;
}
operation_file = LINUX_SYSFS_VPORT_DELETE_POSTFIX;
break;
default:
- virNodeDeviceReportError(VIR_ERR_INTERNAL_ERROR,
- _("Invalid vport operation (%d)"), operation);
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Invalid vport operation (%d)"), operation);
retval = -1;
goto cleanup;
break;
*t = time(NULL);
if (*t == (time_t)-1) {
- virNodeDeviceReportError(VIR_ERR_INTERNAL_ERROR,
- "%s", _("Could not get current time"));
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ "%s", _("Could not get current time"));
*t = 0;
ret = -1;
* we're returning what we get... */
if (dev == NULL) {
- virNodeDeviceReportError(VIR_ERR_NO_NODE_DEVICE, NULL);
+ virReportError(VIR_ERR_NO_NODE_DEVICE, NULL);
}
cleanup:
nodeDeviceUnlock(driver);
if (!obj) {
- virNodeDeviceReportError(VIR_ERR_NO_NODE_DEVICE, NULL);
+ virReportError(VIR_ERR_NO_NODE_DEVICE, NULL);
goto out;
}