summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2020-07-24 04:14:10 +0300
committerChristoph Hellwig <hch@lst.de>2020-07-29 08:45:20 +0300
commit653303f21682916dc3a70c24f68233b4392d52d6 (patch)
tree02167106b8a5d20c01871221befea42cc8d8e70b /drivers
parentecca390e80561debbfdb4dc96bf94595136889fa (diff)
downloadlinux-653303f21682916dc3a70c24f68233b4392d52d6.tar.xz
nvme-hwmon: log the controller device name
Stay consistent with the rest of the driver Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/nvme/host/hwmon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nvme/host/hwmon.c b/drivers/nvme/host/hwmon.c
index 23ba8bf678ae..412a6c97c0d8 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;
}