From patchwork Wed Jun 2 15:24:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jvrao X-Patchwork-Id: 54385 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 163F7B7D24 for ; Thu, 3 Jun 2010 01:24:55 +1000 (EST) Received: from localhost ([127.0.0.1]:55383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJpoF-00064u-2i for incoming@patchwork.ozlabs.org; Wed, 02 Jun 2010 11:24:47 -0400 Received: from [140.186.70.92] (port=54623 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJpln-0004dx-26 for qemu-devel@nongnu.org; Wed, 02 Jun 2010 11:22:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJpl6-0004pj-9R for qemu-devel@nongnu.org; Wed, 02 Jun 2010 11:21:37 -0400 Received: from e37.co.us.ibm.com ([32.97.110.158]:41538) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJpl6-0004pW-0L for qemu-devel@nongnu.org; Wed, 02 Jun 2010 11:21:32 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e37.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id o52FJl8U025382 for ; Wed, 2 Jun 2010 09:19:47 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id o52FLTsB252224 for ; Wed, 2 Jun 2010 09:21:29 -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 o52FLNDg011100 for ; Wed, 2 Jun 2010 09:21:25 -0600 Received: from localhost.localdomain (elm9m80.beaverton.ibm.com [9.47.81.80]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o52FLEKp010174; Wed, 2 Jun 2010 09:21:17 -0600 From: "Venkateswararao Jujjuri (JV)" To: qemu-devel@nongnu.org Date: Wed, 2 Jun 2010 08:24:59 -0700 Message-Id: <1275492299-22617-1-git-send-email-jvrao@linux.vnet.ibm.com> X-Mailer: git-send-email 1.6.0.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: v9fs-developer@lists.sourceforge.net, aliguori@us.ibm.com, "Venkateswararao Jujjuri \(JV\)" Subject: [Qemu-devel] [PATCH-V2] [virtio-9p] Flush the debug message out to the log file. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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); }