From: Venkateswararao Jujjuri (JV) Date: Wed, 2 Jun 2010 15:24:59 +0000 (-0700) Subject: Flush the debug message out to the log file. X-Git-Tag: qemu-xen-4.2.0~2662 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0db09dd2ab57fa93e46885b80dc9cbc68f9756f8;p=qemu-upstream-4.2-testing.git 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 Signed-off-by: Anthony Liguori --- diff --git a/hw/virtio-9p-debug.c b/hw/virtio-9p-debug.c index 2fb2673d9..e4ab4bca5 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); }