Message ID | 1275492299-22617-1-git-send-email-jvrao@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
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 --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); }
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(-)