Received: from [140.186.70.92] (port=56231 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PA746-0003sq-Ma for qemu-devel@nongnu.org; Sun, 24 Oct 2010 16:21:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PA6vy-0005Ak-5d for qemu-devel@nongnu.org; Sun, 24 Oct 2010 16:12:51 -0400 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:35831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PA6vx-00051l-Ej for qemu-devel@nongnu.org; Sun, 24 Oct 2010 16:12:50 -0400 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by e28smtp08.in.ibm.com (8.14.4/8.13.1) with ESMTP id o9OJiGxw018336 for ; Mon, 25 Oct 2010 01:14:16 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9OKCXuI4194362 for ; Mon, 25 Oct 2010 01:42:33 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9OKCW26020483 for ; Mon, 25 Oct 2010 01:42:33 +0530 From: Harsh Prateek Bora Date: Mon, 25 Oct 2010 01:42:28 +0530 Message-Id: <1287951148-25785-1-git-send-email-harsh@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] Use appropriate functions for TLINK debug prints. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Harsh Prateek Bora Running fsstress with debug enabled causes assertion failure because of inappropriate usage of debug print functions. With this patch, fsstress passes without assertion failure. Signed-off-by: Harsh Prateek Bora --- hw/virtio-9p-debug.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio-9p-debug.c b/hw/virtio-9p-debug.c index cff5b07..6b18842 100644 --- a/hw/virtio-9p-debug.c +++ b/hw/virtio-9p-debug.c @@ -552,8 +552,8 @@ void pprint_pdu(V9fsPDU *pdu) break; case P9_TLINK: fprintf(llogfile, "TLINK: ("); - pprint_int32(pdu, 0, &offset, "fid"); - pprint_str(pdu, 0, &offset, ", oldpath"); + pprint_int32(pdu, 0, &offset, "dfid"); + pprint_int32(pdu, 0, &offset, ", fid"); pprint_str(pdu, 0, &offset, ", newpath"); break; case P9_RLINK: -- 1.7.1.1