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

login
register
mail settings
Submitter jvrao
Date June 2, 2010, 3:24 p.m.
Message ID <1275492299-22617-1-git-send-email-jvrao@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/54385/
State New
Headers show

Comments

jvrao - June 2, 2010, 3:24 p.m.
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(-)
Anthony Liguori - June 23, 2010, 1:46 a.m.
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);
>   }
>

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