]> Git Repo - qemu.git/blobdiff - tests/virtio-9p-test.c
iotests: Add preallocated growth test for qcow2
[qemu.git] / tests / virtio-9p-test.c
index 43a1ad813fdaf41226b614c9865879ea7365984a..ad33d963876fd32576062c01e2975909109f5a17 100644 (file)
@@ -256,8 +256,8 @@ static void v9fs_req_recv(P9Req *req, uint8_t id)
         qvirtio_wait_queue_isr(v9p->dev, v9p->vq, 1000 * 1000);
 
         v9fs_memread(req, &hdr, 7);
-        le32_to_cpus(&hdr.size);
-        le16_to_cpus(&hdr.tag);
+        hdr.size = ldl_le_p(&hdr.size);
+        hdr.tag = lduw_le_p(&hdr.tag);
         if (hdr.size >= 7) {
             break;
         }
This page took 0.024147 seconds and 4 git commands to generate.