提交 532ec6f1 编写于 作者: G Grant Grundler 提交者: Roland Dreier

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: NGrant Grundler <grundler@chromium.org>
Signed-off-by: NRoland Dreier <roland@purestorage.com>
上级 41ef2d56
......@@ -1374,7 +1374,7 @@ static int srpt_abort_cmd(struct srpt_send_ioctx *ioctx)
target_put_sess_cmd(ioctx->ch->sess, &ioctx->cmd);
break;
default:
WARN_ON("ERROR: unexpected command state");
WARN(1, "Unexpected command state (%d)", state);
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册