qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH-V2] [virtio-9p] Flush the debug message out to the l


From: Venkateswararao Jujjuri (JV)
Subject: [Qemu-devel] [PATCH-V2] [virtio-9p] Flush the debug message out to the log file.
Date: Wed, 2 Jun 2010 08:24:59 -0700

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 <address@hidden>
---
 hw/virtio-9p-debug.c |    2 ++
 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);
 }
-- 
1.6.5.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]