]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
bhyve: fix error message in bhyveStateInitialize
authorDmitry Guryanov <dguryanov@parallels.com>
Tue, 12 Aug 2014 15:46:18 +0000 (19:46 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 12 Aug 2014 17:12:19 +0000 (21:12 +0400)
If we failed to create BHYVE_STATE_DIR, we should show this
path, not BHYVE_LOG_DIR.

src/bhyve/bhyve_driver.c

index 135cb248ea38521a38e662e0a06c6ae4a7637512..eb8f9afd388d337b6585460f75c1354a8637100a 100644 (file)
@@ -1191,7 +1191,7 @@ bhyveStateInitialize(bool priveleged ATTRIBUTE_UNUSED,
     if (virFileMakePath(BHYVE_STATE_DIR) < 0) {
         virReportSystemError(errno,
                              _("Failed to mkdir %s"),
-                             BHYVE_LOG_DIR);
+                             BHYVE_STATE_DIR);
         goto cleanup;
     }