* [Qemu-devel] [PATCH-V2] [virtio-9p] Flush the debug message out to the log file.
@ 2010-06-02 15:24 Venkateswararao Jujjuri (JV)
2010-06-23 1:46 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Venkateswararao Jujjuri (JV) @ 2010-06-02 15:24 UTC (permalink / raw)
To: qemu-devel; +Cc: v9fs-developer, aliguori, 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.
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH-V2] [virtio-9p] Flush the debug message out to the log file.
2010-06-02 15:24 [Qemu-devel] [PATCH-V2] [virtio-9p] Flush the debug message out to the log file Venkateswararao Jujjuri (JV)
@ 2010-06-23 1:46 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2010-06-23 1:46 UTC (permalink / raw)
To: Venkateswararao Jujjuri (JV); +Cc: v9fs-developer, aliguori, qemu-devel
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);
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-23 1:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-02 15:24 [Qemu-devel] [PATCH-V2] [virtio-9p] Flush the debug message out to the log file Venkateswararao Jujjuri (JV)
2010-06-23 1:46 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).