From: Aneesh Kumar K.V Date: Wed, 27 Apr 2011 06:55:46 +0000 (+0530) Subject: virtio-9p: Print the pdu details on return X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=39792515185350a21ec84b9eb65aafd0bb65525c;p=qemu.git virtio-9p: Print the pdu details on return Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri --- diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 7e29535672..18968c25c3 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); } }