| From a60ccd1fb69721ad2358ecfe3a8465613e318e16 Mon Sep 17 00:00:00 2001 |
| From: Israel Rukshin <israelr@mellanox.com> |
| Date: Tue, 4 Feb 2020 14:38:09 +0200 |
| Subject: [PATCH] nvmet: Fix error print message at nvmet_install_queue |
| function |
| |
| 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: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/nvme/target/fabrics-cmd.c b/drivers/nvme/target/fabrics-cmd.c |
| index 3b9f79aba98f..1c119eef3e3b 100644 |
| --- a/drivers/nvme/target/fabrics-cmd.c |
| +++ b/drivers/nvme/target/fabrics-cmd.c |
| @@ -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; |
| } |
| } |
| -- |
| 2.7.4 |
| |