diff mbox

[PATCH-V2,virtio-9p] Flush the debug message out to the log file.

Message ID 1275492299-22617-1-git-send-email-jvrao@linux.vnet.ibm.com
State New
Headers show

Commit Message

jvrao June 2, 2010, 3:24 p.m. UTC
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>
---
 hw/virtio-9p-debug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Anthony Liguori June 23, 2010, 1:46 a.m. UTC | #1
On 06/02/2010 10:24 AM, Venkateswararao Jujjuri (JV) wrote:
> 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>
>    

Applied.  Thanks.

Regards,

Anthony Liguori
> ---
>   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);
>   }
>
diff mbox

Patch

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);
 }