Skip to contentSkip to conversation

Flush the debug message out to the log file.

PATCH Applied Venkateswararao Jujjuri (JV) 2 participants 2 messages Jun 2, 2010 – Jun 23, 2010

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
 hw/virtio-9p-debug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
hw/virtio-9p-debug.c +2 -0
index 2fb2673..e4ab4bc 100644
@@ -481,4 +481,6 @@ void pprint_pdu(V9fsPDU *pdu)
     }
 
     fprintf(llogfile, ")\n");
+    /* Flush the log message out */
+    fflush(llogfile);
 }
Signature · 1 line
1.6.5.2
#1 lore raw
Quoted 8 lines · Venkateswararao Jujjuri (JV)

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.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 16 lines
---
  hw/virtio-9p-debug.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)
hw/virtio-9p-debug.c +2 -0
index 2fb2673..e4ab4bc 100644
@@ -481,4 +481,6 @@ void pprint_pdu(V9fsPDU *pdu)
      }
 
      fprintf(llogfile, ")\n");
+    /* Flush the log message out */
+    fflush(llogfile);
  }