diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2018-05-08 09:02:33 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-25 17:50:12 +0300 |
commit | b40b83e365d6ccc2d900e7f481bab91146a68407 (patch) | |
tree | 914ee3ffe742944cb9bd24f4a1599e83f79461d3 | |
parent | 181303d03525ea52d2d002fb8ee04e769aaa4ce4 (diff) | |
download | linux-b40b83e365d6ccc2d900e7f481bab91146a68407.tar.xz |
nvmet: make a few error messages more generic
"nvmet_check_ctrl_status()" is called from admin-cmd.c along
with io-cmd.c, make the error message more generic.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/nvme/target/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c index e95424f172fd..4a9908bb7de0 100644 --- a/drivers/nvme/target/core.c +++ b/drivers/nvme/target/core.c @@ -710,13 +710,13 @@ out: u16 nvmet_check_ctrl_status(struct nvmet_req *req, struct nvme_command *cmd) { if (unlikely(!(req->sq->ctrl->cc & NVME_CC_ENABLE))) { - pr_err("got io cmd %d while CC.EN == 0 on qid = %d\n", + pr_err("got cmd %d while CC.EN == 0 on qid = %d\n", cmd->common.opcode, req->sq->qid); return NVME_SC_CMD_SEQ_ERROR | NVME_SC_DNR; } if (unlikely(!(req->sq->ctrl->csts & NVME_CSTS_RDY))) { - pr_err("got io cmd %d while CSTS.RDY == 0 on qid = %d\n", + pr_err("got cmd %d while CSTS.RDY == 0 on qid = %d\n", cmd->common.opcode, req->sq->qid); req->ns = NULL; return NVME_SC_CMD_SEQ_ERROR | NVME_SC_DNR; |