summaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2017-08-15 11:24:05 +0200
committerSagi Grimberg <sagi@grimberg.me>2017-08-28 22:00:38 +0200
commitcaaa15c5097d58545075a8bbdf208078b87d5f28 (patch)
tree0e77b5c53dd4477b6562e30d5f0f478d04da5b9a /drivers/nvme
parentnvme-fabrics: log a warning if hostid is invalid (diff)
downloadlinux-caaa15c5097d58545075a8bbdf208078b87d5f28.tar.xz
linux-caaa15c5097d58545075a8bbdf208078b87d5f28.zip
nvme: fix identify namespace logging
Use ctrl->device and lose the func name. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 0b979e16655e..b2daeafbeadd 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -1167,7 +1167,7 @@ static void nvme_config_discard(struct nvme_ns *ns)
static int nvme_revalidate_ns(struct nvme_ns *ns, struct nvme_id_ns **id)
{
if (nvme_identify_ns(ns->ctrl, ns->ns_id, id)) {
- dev_warn(ns->ctrl->dev, "%s: Identify failure\n", __func__);
+ dev_warn(ns->ctrl->device, "Identify namespace failed\n");
return -ENODEV;
}