mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/rdma: Fix 32-bit compilation
Use the correct printf formats, so that a 32-bit compile doesn't spit out lots of warnings about %lx being incompatible with uint64_t. Suggested-by: Eric Blake <eblake@redhat.com> Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Eric Blake <eblake@redhat.com> Tested-by: Eric Blake <eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20180322095220.9976-4-yuval.shaia@oracle.com> Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
This commit is contained in:
parent
94f480b8db
commit
6f559013c8
8 changed files with 40 additions and 38 deletions
|
@ -170,9 +170,9 @@ int rdma_rm_alloc_mr(RdmaDeviceResources *dev_res, uint32_t pd_handle,
|
|||
mr->user_mr.host_virt = host_virt;
|
||||
pr_dbg("host_virt=0x%p\n", mr->user_mr.host_virt);
|
||||
mr->user_mr.length = guest_length;
|
||||
pr_dbg("length=0x%lx\n", guest_length);
|
||||
pr_dbg("length=%zu\n", guest_length);
|
||||
mr->user_mr.guest_start = guest_start;
|
||||
pr_dbg("guest_start=0x%lx\n", mr->user_mr.guest_start);
|
||||
pr_dbg("guest_start=0x%" PRIx64 "\n", mr->user_mr.guest_start);
|
||||
|
||||
length = mr->user_mr.length;
|
||||
addr = mr->user_mr.host_virt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue