From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33569 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORF3D-0001ep-FI for qemu-devel@nongnu.org; Tue, 22 Jun 2010 21:46:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORF3C-0006dN-5u for qemu-devel@nongnu.org; Tue, 22 Jun 2010 21:46:51 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:42271) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORF3C-0006aK-1b for qemu-devel@nongnu.org; Tue, 22 Jun 2010 21:46:50 -0400 Received: by mail-gw0-f45.google.com with SMTP id 19so1123099gwb.4 for ; Tue, 22 Jun 2010 18:46:49 -0700 (PDT) Message-ID: <4C216786.2020905@codemonkey.ws> Date: Tue, 22 Jun 2010 20:46:46 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH-V2] [virtio-9p] Flush the debug message out to the log file. References: <1275492299-22617-1-git-send-email-jvrao@linux.vnet.ibm.com> In-Reply-To: <1275492299-22617-1-git-send-email-jvrao@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Venkateswararao Jujjuri (JV)" Cc: v9fs-developer@lists.sourceforge.net, aliguori@us.ibm.com, qemu-devel@nongnu.org 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 > 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); > } >