From: Sagi Grimberg Date: Fri, 24 Jul 2020 01:14:10 +0000 (-0700) Subject: nvme-hwmon: log the controller device name X-Git-Tag: v5.10.7~1957^2~1^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=653303f21682916dc3a70c24f68233b4392d52d6;p=platform%2Fkernel%2Flinux-rpi.git nvme-hwmon: log the controller device name Stay consistent with the rest of the driver Signed-off-by: Sagi Grimberg Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/hwmon.c b/drivers/nvme/host/hwmon.c index 23ba8bf..412a6c9 100644 --- a/drivers/nvme/host/hwmon.c +++ b/drivers/nvme/host/hwmon.c @@ -241,7 +241,8 @@ void nvme_hwmon_init(struct nvme_ctrl *ctrl) err = nvme_hwmon_get_smart_log(data); if (err) { - dev_warn(dev, "Failed to read smart log (error %d)\n", err); + dev_warn(ctrl->device, + "Failed to read smart log (error %d)\n", err); devm_kfree(dev, data); return; }