From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEyf5-00046K-JB for qemu-devel@nongnu.org; Wed, 27 Apr 2011 02:55:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEyf4-0003aE-Kh for qemu-devel@nongnu.org; Wed, 27 Apr 2011 02:55:47 -0400 Received: from e28smtp02.in.ibm.com ([122.248.162.2]:43063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEyf3-0003a7-Ts for qemu-devel@nongnu.org; Wed, 27 Apr 2011 02:55:46 -0400 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by e28smtp02.in.ibm.com (8.14.4/8.13.1) with ESMTP id p3R6tgNn023945 for ; Wed, 27 Apr 2011 12:25:42 +0530 Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p3R6tgDN3236042 for ; Wed, 27 Apr 2011 12:25:42 +0530 Received: from d28av02.in.ibm.com (loopback [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p3R6tgIH007510 for ; Wed, 27 Apr 2011 16:55:42 +1000 From: "Aneesh Kumar K.V" Date: Wed, 27 Apr 2011 12:25:40 +0530 Message-Id: <1303887340-6917-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] virtio-9p: Print the pdu details on return List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, "Aneesh Kumar K.V" Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 7c59988..3858e17 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -596,7 +596,10 @@ static V9fsPDU *alloc_pdu(V9fsState *s) static void free_pdu(V9fsState *s, V9fsPDU *pdu) { if (pdu) { - QLIST_INSERT_HEAD(&s->free_list, pdu, next); + if (debug_9p_pdu) { + pprint_pdu(pdu); + } + QLIST_INSERT_HEAD(&s->free_list, pdu, next); } } -- 1.7.4.1