]> git.proxmox.com Git - qemu.git/commitdiff
virtio-9p: Print the pdu details on return
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 27 Apr 2011 06:55:46 +0000 (12:25 +0530)
committerVenkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Wed, 27 Apr 2011 15:25:35 +0000 (08:25 -0700)
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
hw/9pfs/virtio-9p.c

index 7e2953567229c239f39296503b57b059ec81ad4a..18968c25c38b9c3d4d13342e087bbba75e81e778 100644 (file)
@@ -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);
     }
 }