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
This commit is contained in:
Bart Van Assche
2010-01-11 18:41:55 +00:00
parent 661ecd52d2
commit 530ecf06c2

View File

@@ -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);