From: Jovanka Gulicoska Date: Tue, 7 Jun 2016 15:59:58 +0000 (+0200) Subject: xen: Replace VIR_ERROR with standard vir*Error in state driver init X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9c9afba4c0b48d9bc3862eb0fb07cf49c1077628;p=libvirt.git xen: Replace VIR_ERROR with standard vir*Error in state driver init --- diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c index db8f74ed39..8806081865 100644 --- a/src/xen/xen_driver.c +++ b/src/xen/xen_driver.c @@ -407,7 +407,6 @@ static virDrvOpenStatus xenUnifiedConnectOpen(virConnectPtr conn, virConnectAuthPtr auth, unsigned int flags) { xenUnifiedPrivatePtr priv; - char ebuf[1024]; /* * Only the libvirtd instance can open this driver. @@ -532,8 +531,8 @@ xenUnifiedConnectOpen(virConnectPtr conn, virConnectAuthPtr auth, unsigned int f goto error; if (virFileMakePath(priv->saveDir) < 0) { - VIR_ERROR(_("Errored to create save dir '%s': %s"), priv->saveDir, - virStrerror(errno, ebuf, sizeof(ebuf))); + virReportSystemError(errno, _("Errored to create save dir '%s'"), + priv->saveDir); goto error; }