bhyve: fix error message in bhyveStateInitialize

If we failed to create BHYVE_STATE_DIR, we should show this
path, not BHYVE_LOG_DIR.
This commit is contained in:
Dmitry Guryanov 2014-08-12 19:46:18 +04:00 committed by Roman Bogorodskiy
parent bf4cbe4094
commit aad6e85f25

View 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;
}