Skip to contentSkip to conversation

nvme: fix identify namespace logging

PATCH New Sagi Grimberg 2 participants 2 messages Aug 15, 2017 – Aug 16, 2017 NVMe

lore
Share & tools
lore

Sagi Grimberg

author maintainer
#0 lore raw

PATCH 1/1 nvme: fix identify namespace logging

Use ctrl->device and lose the func name.

Signed-off-by Sagi Grimberg <sagi at grimberg.me>
---
 drivers/nvme/host/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/core.c +1 -1
index 25a12998a498..a2ac892f470e 100644
@@ -1174,7 +1174,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;
 	}
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 nvme: fix identify namespace logging

Applied to nvme-4.14, thanks.