Skip to contentSkip to conversation

net: convert qemu_log to error_report, fix message

PATCH Applied Paolo Bonzini 2 participants 2 messages Dec 4, 2015 – Jan 10, 2016 Networking

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: convert qemu_log to error_report, fix message

Ensure that the error is printed with the proper timestamp.

---

        v1->v2: remove reference to -net dump, dumping can be a network filter
---
 net/dump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/dump.c +1 -1
index ce16a4b..1c05f78 100644
@@ -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;
     }
Signature · 1 line
2.5.0
#1 lore raw
Quoted 1 line · Paolo Bonzini

Ensure that the error is printed with the proper timestamp.

Applied to -trivial, thank you!

/mjt