From 9fe91585745dd71c390a537ce549acf539b707d3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 26 Mar 2013 06:59:08 +0000 Subject: [PATCH] ib_srpt: Include state in unexpected command state messages git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4815 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index dd3dc9d70..449287f52 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1419,10 +1419,10 @@ static void srpt_abort_cmd(struct srpt_send_ioctx *ioctx, * management commands. Note: the SCST core frees these * commands immediately after srpt_tsk_mgmt_done() returned. */ - WARN_ON("ERROR: unexpected command state"); + WARN(true, "Unexpected command state %d", state); break; default: - WARN_ON("ERROR: unexpected command state"); + WARN(true, "Unexpected command state %d", state); break; }