Skip to content
Snippets Groups Projects
Commit 34f22fc0 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Michael Tokarev
Browse files

net: convert qemu_log to error_report, fix message


Ensure that the error is printed with the proper timestamp.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent 477cea9e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment