From 530ecf06c20b02012920ebd0bf896cee0a0806d3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 11 Jan 2010 18:41:55 +0000 Subject: [PATCH] Converted a WARN_ON() into a PRINT_ERROR() statement. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1445 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index b5ef983ce..ad0b978b5 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1148,7 +1148,9 @@ static void srpt_reset_ioctx(struct srpt_rdma_ch *ch, struct srpt_ioctx *ioctx) int req_lim; req_lim = atomic_inc_return(&ch->req_lim); - WARN_ON(req_lim < 0 || req_lim > SRPT_RQ_SIZE); + if (req_lim < 0 || req_lim > SRPT_RQ_SIZE) + PRINT_ERROR("internal error: req_lim = %d out of range" + "%d .. %d", req_lim, 0, SRPT_RQ_SIZE); if (req_lim == SRPT_RQ_SIZE / 2 && atomic_xchg(&ch->send_cred_req, 0)) srpt_alloc_and_send_cred_req(ch);