]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
RDMA: Fix compilation warning 12737/head
authorAmir Vadai <amir@vadai.me>
Mon, 2 Jan 2017 08:57:15 +0000 (10:57 +0200)
committerAmir Vadai <amir@vadai.me>
Mon, 2 Jan 2017 10:12:04 +0000 (12:12 +0200)
commit194bc3cb5f1d28dd85f152af9c924a703cb354e0
tree852a2dc3962572612bb1ea09672c59e22ff60fb7
parent3662403e997b6400845b7e22e57c74772dfb546c
RDMA: Fix compilation warning

Infiniband.cc: In member function ‘int Infiniband::recv_msg(CephContext*, int, IBSYNMsg&)’:
Infiniband.cc:883:86: warning: format ‘%x’ expects argument of type ‘unsigned int*’, but argument 3 has type ‘uint16_t* {aka short unsigned int*}’ [-Wformat=]
     sscanf(msg, "%x:%x:%x:%x:%s", &(im.lid), &(im.qpn), &(im.psn),
     &(im.peer_qpn),gid);

Signed-off-by: Amir Vadai <amir@vadai.me>
src/msg/async/rdma/Infiniband.cc