mirror of https://gitee.com/openkylin/libvirt.git
qemu_process: don't print empty line if qemu exits without any error
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1335617 Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
c1b8d87bab
commit
407c6909bc
|
@ -1809,8 +1809,11 @@ qemuProcessReportLogError(qemuDomainLogContextPtr logCtxt,
|
|||
return -1;
|
||||
|
||||
virResetLastError();
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("%s: %s"), msgprefix, logmsg);
|
||||
if (virStringIsEmpty(logmsg))
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", msgprefix);
|
||||
else
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, _("%s: %s"), msgprefix, logmsg);
|
||||
|
||||
VIR_FREE(logmsg);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue