OSDN Git Service

hw/rdma: Use correct print format in CHK_ATTR macro
authorYuval Shaia <yuval.shaia@oracle.com>
Thu, 22 Mar 2018 09:52:19 +0000 (11:52 +0200)
committerMarcel Apfelbaum <marcel@redhat.com>
Fri, 23 Mar 2018 15:38:55 +0000 (18:38 +0300)
commit94f480b8db137ee499c7457dbcf7eb6e1ef5b482
tree72109703873dfede5c221351f0037bc96a1f168e
parent9bbb8d3577fe302802bfc7e4cf832a39aaa75692
hw/rdma: Use correct print format in CHK_ATTR macro

Macro should not cast the given variable to u64 instead it should use
the supplied format argument (fmt).

Reported-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-3-yuval.shaia@oracle.com>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
hw/rdma/rdma_backend.c