OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
477cea9
)
net: convert qemu_log to error_report, fix message
author
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 4 Dec 2015 12:38:46 +0000
(13:38 +0100)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Mon, 11 Jan 2016 08:39:28 +0000
(11:39 +0300)
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>
net/dump.c
patch
|
blob
|
history
diff --git
a/net/dump.c
b/net/dump.c
index
ce16a4b
..
1c05f78
100644
(file)
--- a/
net/dump.c
+++ b/
net/dump.c
@@
-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;
}