[PATCH] nvme: relax hwmon logging

Sagi Grimberg sagi at grimberg.me
Tue Sep 15 19:11:08 EDT 2020


With fabrics the hwmon is irrelevant, so move this print
to debug level to avoid seeing it every time we connect.

Fixes: 400b6a7b13a3 ("nvme: Add hardware monitoring support")
Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
---
 drivers/nvme/host/hwmon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/host/hwmon.c b/drivers/nvme/host/hwmon.c
index 412a6c97c0d8..f0c59cc0c594 100644
--- a/drivers/nvme/host/hwmon.c
+++ b/drivers/nvme/host/hwmon.c
@@ -251,7 +251,7 @@ void nvme_hwmon_init(struct nvme_ctrl *ctrl)
 						     &nvme_hwmon_chip_info,
 						     NULL);
 	if (IS_ERR(hwmon)) {
-		dev_warn(dev, "Failed to instantiate hwmon device\n");
+		dev_dbg(dev, "Failed to instantiate hwmon device\n");
 		devm_kfree(dev, data);
 	}
 }
-- 
2.25.1




More information about the Linux-nvme mailing list