Message ID | 1490690794-19023-3-git-send-email-groug@kaod.org |
---|---|
State | Accepted |
Commit | 34ef723ce34aaa14f94530c06a0ab3170a19bb59 |
Headers | show |
Series | None | expand |
diff --git a/tests/virtio-9p-test.c b/tests/virtio-9p-test.c index 43a1ad813fda..ad33d963876f 100644 --- a/tests/virtio-9p-test.c +++ b/tests/virtio-9p-test.c @@ -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; }