提交 407c6909 编写于 作者: P Pavel Hrdina

qemu_process: don't print empty line if qemu exits without any error

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1335617Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 c1b8d87b
...@@ -1809,8 +1809,11 @@ qemuProcessReportLogError(qemuDomainLogContextPtr logCtxt, ...@@ -1809,8 +1809,11 @@ qemuProcessReportLogError(qemuDomainLogContextPtr logCtxt,
return -1; return -1;
virResetLastError(); virResetLastError();
virReportError(VIR_ERR_INTERNAL_ERROR, if (virStringIsEmpty(logmsg))
_("%s: %s"), msgprefix, logmsg); virReportError(VIR_ERR_INTERNAL_ERROR, "%s", msgprefix);
else
virReportError(VIR_ERR_INTERNAL_ERROR, _("%s: %s"), msgprefix, logmsg);
VIR_FREE(logmsg); VIR_FREE(logmsg);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册