Updated error messages -- req_lim < 0 is not an internal error but can be caused...
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 3 Mar 2010 19:36:05 +0000 (19:36 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 3 Mar 2010 19:36:05 +0000 (19:36 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1532 d57e44dd-8a1f-0410-8b47-8ef2f437770f

srpt/src/ib_srpt.c

index fb5ad2a..60c79b6 100644 (file)
@@ -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 {