[nd] Don't use inline for RDMA reads. (mlnx 5666)
[mirror/winof/.git] / hw / mlx4 / user / hca / cq.c
index a224ebb..24d2f56 100644 (file)
@@ -130,7 +130,7 @@ static void mlx4_handle_error_cqe(struct mlx4_err_cqe *cqe, ib_wc_t *wc)
                printf(PFX "local QP operation err "\r
                       "(QPN %06x, WQE index %x, vendor syndrome %02x, "\r
                       "opcode = %02x)\n",\r
-                      htonl(cqe->my_qpn), htonl(cqe->wqe_index),\r
+                      htonl(cqe->my_qpn), htons(cqe->wqe_index),\r
                       cqe->vendor_err,\r
                       cqe->owner_sr_opcode & ~MLX4_CQE_OWNER_MASK);\r
 \r