nvme: fix identify namespace logging
authorSagi Grimberg <sagi@grimberg.me>
Tue, 15 Aug 2017 09:24:05 +0000 (12:24 +0300)
committerSagi Grimberg <sagi@grimberg.me>
Mon, 28 Aug 2017 20:00:38 +0000 (23:00 +0300)
Use ctrl->device and lose the func name.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c

index 0b979e16655eecff5c3176084575fcb15386abac..b2daeafbeadd7252dd9055ef9d5d4909faabb5bc 100644 (file)
@@ -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;
        }