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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:35:08 +0000 (04:35 -0800)
commit 0b87a2b795d66be7b54779848ef0f3901c5e46fc upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvme/target/fabrics-cmd.c

index d16b55ffe79f409e0506a2611f409993b0fd48e4..76c5f40d0bb25dce8719aef7311bc90e8e3cf53e 100644 (file)
@@ -132,7 +132,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;
                }
        }