From: Jovanka Gulicoska Date: Mon, 23 May 2016 18:35:57 +0000 (+0200) Subject: libxl: Replace VIR_ERROR with standard vir*Error in state driver init X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1223f7b23e8b6eda76257eb0b80386214cf5ba50;p=libvirt.git libxl: Replace VIR_ERROR with standard vir*Error in state driver init Replace VIR_ERROR with virReportError --- diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c index b8b4c24ce2..7f4c5d1d03 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; }