From: Sagi Grimberg Date: Tue, 15 Aug 2017 09:24:05 +0000 (+0300) Subject: nvme: fix identify namespace logging X-Git-Tag: v4.14-rc1~81^2~33^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=caaa15c5097d58545075a8bbdf208078b87d5f28;p=thirdparty%2Fkernel%2Flinux.git nvme: fix identify namespace logging Use ctrl->device and lose the func name. Signed-off-by: Sagi Grimberg Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 0b979e16655ee..b2daeafbeadd7 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; }