mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
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;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user