[libvirt] [PATCH v2 4/8] libxl: Replace VIR_ERROR with standard vir*Error in state driver init
Jovanka Gulicoska
jovanka.gulicoska at gmail.com
Mon May 23 18:35:57 UTC 2016
Replace VIR_ERROR with virReportError
---
src/libxl/libxl_driver.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
index b8b4c24..e70e124 100644
--- a/src/libxl/libxl_driver.c
+++ b/src/libxl/libxl_driver.c
@@ -319,9 +319,9 @@ libxlAutostartDomain(virDomainObjPtr vm,
if (vm->autostart && !virDomainObjIsActive(vm) &&
libxlDomainStartNew(driver, vm, false) < 0) {
- VIR_ERROR(_("Failed to autostart VM '%s': %s"),
- vm->def->name,
- virGetLastErrorMessage());
+ virReportError(VIR_ERR_INTERNAL_ERROR, _("Failed to autostart VM '%s': %s"),
+ vm->def->name,
+ virGetLastErrorMessage());
goto endjob;
}
--
2.5.5
More information about the libvir-list
mailing list