]> git.proxmox.com Git - qemu.git/commitdiff
hw/virtio9p: Use appropriate debug print functions in TLINK path
authorHarsh Prateek Bora <harsh@linux.vnet.ibm.com>
Sun, 24 Oct 2010 15:24:26 +0000 (20:54 +0530)
committerVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Fri, 3 Dec 2010 00:07:49 +0000 (16:07 -0800)
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 <harsh@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
hw/virtio-9p-debug.c

index cff5b07297108774740a493af232131ead7b645a..6b18842fd43632d409d2a6593456cc8cd56734f1 100644 (file)
@@ -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: