From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=32979 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJXw6-0006F8-4G for qemu-devel@nongnu.org; Tue, 01 Jun 2010 16:19:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJXw1-0007Wq-6K for qemu-devel@nongnu.org; Tue, 01 Jun 2010 16:19:42 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:36183) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJXw1-0007Wc-1K for qemu-devel@nongnu.org; Tue, 01 Jun 2010 16:19:37 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e39.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o51KAc2L015839 for ; Tue, 1 Jun 2010 14:10:38 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o51KJPi0042828 for ; Tue, 1 Jun 2010 14:19:26 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o51KJOlN005313 for ; Tue, 1 Jun 2010 14:19:25 -0600 From: "Venkateswararao Jujjuri (JV)" Date: Tue, 1 Jun 2010 13:23:09 -0700 Message-Id: <1275423789-13850-1-git-send-email-jvrao@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] [virtio-9p] Flush the debug message out to the log file. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: v9fs-developer@lists.sourceforge.net, aliguori@us.ibm.com, "Venkateswararao Jujjuri (JV)" This patch fluesh the debug messages to the log file at the end of each debug message. Signed-off-by: Venkateswararao Jujjuri --- 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..5bfa689 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 */ + fseek(llogfile, 0L, SEEK_CUR); } -- 1.6.5.2