diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-04-27 12:25:46 +0530 |
---|---|---|
committer | Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> | 2011-04-27 08:25:35 -0700 |
commit | 39792515185350a21ec84b9eb65aafd0bb65525c (patch) | |
tree | 47bdd16f6c2a3d00b53f4c42556bd5f526a3d281 /hw | |
parent | 353ac78d495ef976242abd868f68d78420861c2c (diff) | |
download | qemu-39792515185350a21ec84b9eb65aafd0bb65525c.zip qemu-39792515185350a21ec84b9eb65aafd0bb65525c.tar.gz qemu-39792515185350a21ec84b9eb65aafd0bb65525c.tar.bz2 |
virtio-9p: Print the pdu details on return
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | 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 7e29535..18968c2 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); } } |