[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v2 2/8] xen: Replace VIR_ERROR with standard vir*Error in state driver init



Replace VIR_ERROR with virReportSystemError
---
 src/xen/xen_driver.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/xen/xen_driver.c b/src/xen/xen_driver.c
index 3f5d80d..cc5c92d 100644
--- a/src/xen/xen_driver.c
+++ b/src/xen/xen_driver.c
@@ -532,8 +532,9 @@ 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': %s"),
+                             priv->saveDir,
+                             virStrerror(errno, ebuf, sizeof(ebuf)));
         goto error;
     }
 
-- 
2.5.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]