From dfaf6388f23aa75d648b888732ea174dd6f95e3f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 14 Feb 2012 19:48:07 +0000 Subject: [PATCH] ib_srpt: Display the qpn when QP initialization fails git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4128 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index e2af0d277..69643f14d 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2108,6 +2108,8 @@ static int srpt_create_ch_ib(struct srpt_rdma_ch *ch) goto err_destroy_cq; } + TRACE_DBG("qp_num = %#x", ch->qp->qp_num); + ch->sq_wr_avail = qp_init->cap.max_send_wr; TRACE_DBG("%s: max_cqe= %d max_sge= %d sq_size = %d" @@ -2117,7 +2119,8 @@ static int srpt_create_ch_ib(struct srpt_rdma_ch *ch) ret = srpt_init_ch_qp(ch, ch->qp); if (ret) { - PRINT_ERROR("srpt_init_ch_qp() failed (%d)", ret); + PRINT_ERROR("srpt_init_ch_qp(%#x) failed (%d)", ch->qp->qp_num, + ret); goto err_destroy_qp; }