OSDN Git Service

nvmet: Fix error print message at nvmet_install_queue function
authorIsrael Rukshin <israelr@mellanox.com>
Tue, 4 Feb 2020 12:38:09 +0000 (14:38 +0200)
committerKeith Busch <kbusch@kernel.org>
Tue, 4 Feb 2020 16:13:06 +0000 (01:13 +0900)
Place the arguments in the correct order.

Fixes: 1672ddb8d691 ("nvmet: Add install_queue callout")
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/target/fabrics-cmd.c

index f729747..45ebc2e 100644 (file)
@@ -136,7 +136,7 @@ static u16 nvmet_install_queue(struct nvmet_ctrl *ctrl, struct nvmet_req *req)
 
                if (ret) {
                        pr_err("failed to install queue %d cntlid %d ret %x\n",
-                               qid, ret, ctrl->cntlid);
+                               qid, ctrl->cntlid, ret);
                        return ret;
                }
        }