nvme/rdma: convert SGL trace helper into a macro

This makes the function and file/line info actually useful (instead of
pointing to the helper function itself).

Change-Id: I22bac68827115880a49d456706a7eaecdc12e9b5
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-11-28 15:39:08 -07:00
parent a9e436911f
commit 1712d1b7a2

View File

@ -252,14 +252,11 @@ nvme_rdma_post_copy_mem(struct spdk_nvme_rdma_req *rdma_req)
} }
} }
static void #define nvme_rdma_trace_ibv_sge(sg_list) \
nvme_rdma_trace_ibv_sge(struct ibv_sge *sg_list) if (sg_list) { \
{ SPDK_TRACELOG(SPDK_TRACE_DEBUG, "local addr %p length 0x%x lkey 0x%x\n", \
if (sg_list) { (void *)(sg_list)->addr, (sg_list)->length, (sg_list)->lkey); \
SPDK_TRACELOG(SPDK_TRACE_DEBUG, "local addr %p length 0x%x lkey 0x%x\n",
(void *)sg_list->addr, sg_list->length, sg_list->lkey);
} }
}
static int static int
nvme_rdma_post_recv(struct nvme_rdma_qpair *rqpair, nvme_rdma_post_recv(struct nvme_rdma_qpair *rqpair,