From e56b672502d82c1dbd9f300ce7174b93b5a494f0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 3 Mar 2010 19:36:05 +0000 Subject: [PATCH] Updated error messages -- req_lim < 0 is not an internal error but can be caused by a buggy initiator. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1532 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index fb5ad2a8d..60c79b664 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1050,8 +1050,8 @@ static void srpt_reset_ioctx(struct srpt_rdma_ch *ch, struct srpt_ioctx *ioctx) req_lim = atomic_inc_return(&ch->req_lim); 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); + PRINT_ERROR("req_lim = %d out of range %d .. %d", + req_lim, 0, SRPT_RQ_SIZE); } } @@ -1600,8 +1600,7 @@ static void srpt_completion(struct ib_cq *cq, void *ctx) req_lim = atomic_dec_return(&ch->req_lim); if (req_lim < 0) - PRINT_ERROR("internal error: req_lim = %d < 0", - req_lim); + PRINT_ERROR("req_lim = %d < 0", req_lim); ioctx = sdev->ioctx_ring[wc.wr_id & ~SRPT_OP_RECV]; srpt_handle_new_iu(ch, ioctx); } else {