Skip to content

Commit

Permalink
net: convert qemu_log to error_report, fix message
Browse files Browse the repository at this point in the history
Ensure that the error is printed with the proper timestamp.

Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
bonzini authored and Michael Tokarev committed Jan 11, 2016
1 parent 477cea9 commit 34f22fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 34f22fc

Please sign in to comment.