]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commitdiff
Flush the debug message out to the log file.
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Wed, 2 Jun 2010 15:24:59 +0000 (08:24 -0700)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 22 Jun 2010 20:15:30 +0000 (15:15 -0500)
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>
hw/virtio-9p-debug.c

index 2fb2673d93c384ca91e9d7b0450456b1104bb417..e4ab4bca5f13e9cb176f98f38cbcbe05b8a22399 100644 (file)
@@ -481,4 +481,6 @@ void pprint_pdu(V9fsPDU *pdu)
     }
 
     fprintf(llogfile, ")\n");
+    /* Flush the log message out */
+    fflush(llogfile);
 }