aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Grundler <grundler@chromium.org>2013-03-26 17:48:28 -0400
committerRoland Dreier <roland@purestorage.com>2013-04-17 01:58:08 -0400
commit532ec6f1c0b5e936f73c607309253204866e2102 (patch)
tree4b231e7aae5c69a8adbf2ab2a5fc92219ea96681
parent41ef2d5678d83af030125550329b6ae8b74618fa (diff)
SRPT: Fix odd use of WARN_ON()
While WARN_ON("const string") will work, it's intent is not obvious. The warning is more useful by showing the "state" value. Signed-off-by: Grant Grundler <grundler@chromium.org> Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r--drivers/infiniband/ulp/srpt/ib_srpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c
index c09d41b1a2ff..b08ca7a9f76b 100644
--- a/drivers/infiniband/ulp/srpt/ib_srpt.c
+++ b/drivers/infiniband/ulp/srpt/ib_srpt.c
@@ -1374,7 +1374,7 @@ static int srpt_abort_cmd(struct srpt_send_ioctx *ioctx)
1374 target_put_sess_cmd(ioctx->ch->sess, &ioctx->cmd); 1374 target_put_sess_cmd(ioctx->ch->sess, &ioctx->cmd);
1375 break; 1375 break;
1376 default: 1376 default:
1377 WARN_ON("ERROR: unexpected command state"); 1377 WARN(1, "Unexpected command state (%d)", state);
1378 break; 1378 break;
1379 } 1379 }
1380 1380