RDMA/siw: Fix port number endianness in a debug message
authorBart Van Assche <bvanassche@acm.org>
Mon, 30 Sep 2019 23:16:56 +0000 (16:16 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 1 Oct 2019 15:18:18 +0000 (12:18 -0300)
commit050dbddf249eee3e936b5734c30b2e1b427efdc3
tree45c589e1221c488964f59f4475b77fb060df7c45
parent23c1c13cdd556027ed6f886f37975bd59180efe7
RDMA/siw: Fix port number endianness in a debug message

sin_port and sin6_port are big endian member variables. Convert these port
numbers into CPU endianness before printing.

Link: https://lore.kernel.org/r/20190930231707.48259-5-bvanassche@acm.org
Fixes: 6c52fdc244b5 ("rdma/siw: connection management")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/siw/siw_cm.c