nvmet: make a few error messages more generic
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Tue, 8 May 2018 06:02:33 +0000 (02:02 -0400)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 May 2018 14:50:12 +0000 (16:50 +0200)
"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>
drivers/nvme/target/core.c

index e95424f172fd0b124ae437d82c008a595a38d1aa..4a9908bb7de0a4118741bcc648ff244676bbcb60 100644 (file)
@@ -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;