Skip to contentSkip to conversation

virtio-9p: Print the pdu details on return

PATCH New Aneesh Kumar K.V 1 participant 1 message Apr 27, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-9p: Print the pdu details on return

---
 hw/9pfs/virtio-9p.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
hw/9pfs/virtio-9p.c +4 -1
index 7c59988..3858e17 100644
@@ -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);
     }
 }
 
Signature · 1 line
1.7.4.1