summaryrefslogtreecommitdiffstats
path: root/hw/virtio-9p-debug.c
diff options
context:
space:
mode:
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>2010-06-02 08:24:59 -0700
committerAnthony Liguori <aliguori@us.ibm.com>2010-06-22 15:15:30 -0500
commit0db09dd2ab57fa93e46885b80dc9cbc68f9756f8 (patch)
tree4864c006a15679b50c91ac1866b14afc2b0f4174 /hw/virtio-9p-debug.c
parent91ca60e01277da2184d9c3f992c440cb5aa264c4 (diff)
downloadhqemu-0db09dd2ab57fa93e46885b80dc9cbc68f9756f8.zip
hqemu-0db09dd2ab57fa93e46885b80dc9cbc68f9756f8.tar.gz
Flush the debug message out to the log file.
This patch fluesh the debug messages to the log file at the end of each debug message. Changes from V1: Used fflush instead fseek for the flush. Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-9p-debug.c')
-rw-r--r--hw/virtio-9p-debug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/virtio-9p-debug.c b/hw/virtio-9p-debug.c
index 2fb2673..e4ab4bc 100644
--- a/hw/virtio-9p-debug.c
+++ b/hw/virtio-9p-debug.c
@@ -481,4 +481,6 @@ void pprint_pdu(V9fsPDU *pdu)
}
fprintf(llogfile, ")\n");
+ /* Flush the log message out */
+ fflush(llogfile);
}
OpenPOWER on IntegriCloud