mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
net: convert qemu_log to error_report, fix message
Ensure that the error is printed with the proper timestamp. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
477cea9e6d
commit
34f22fc034
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ static ssize_t dump_receive_iov(DumpState *s, const struct iovec *iov, int cnt)
|
|||
cnt = iov_copy(&dumpiov[1], cnt, iov, cnt, 0, caplen);
|
||||
|
||||
if (writev(s->fd, dumpiov, cnt + 1) != sizeof(hdr) + caplen) {
|
||||
qemu_log("-net dump write error - stop dump\n");
|
||||
error_report("network dump write error - stopping dump");
|
||||
close(s->fd);
|
||||
s->fd = -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue