]> xenbits.xensource.com Git - libvirt.git/commitdiff
libxl: Replace VIR_ERROR with standard vir*Error in state driver init
authorJovanka Gulicoska <jovanka.gulicoska@gmail.com>
Mon, 23 May 2016 18:35:57 +0000 (20:35 +0200)
committerCole Robinson <crobinso@redhat.com>
Mon, 23 May 2016 19:42:46 +0000 (15:42 -0400)
Replace VIR_ERROR with virReportError

src/libxl/libxl_driver.c

index b8b4c24ce215e3cb1e261241787e13f702458f82..7f4c5d1d03fbdf6d93773069a3a7a6fcfaefb7a2 100644 (file)
@@ -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;
     }