[PATCH] hwmon: (lm90) Don't spam the kernel log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Degrade the "Unsupported chip" message from info to debug level.
There's nothing wrong with this, so no need to bother the user.
Also make the message slightly more descriptive.

Signed-off-by: Jean Delvare <khali at linux-fr.org>
---
Ben, Martyn, could any of you please review, test and ack this patch?
It applies on top of the 8 other lm90 patches that are queued for
kernel 2.6.28:
  http://khali.linux-fr.org/devel/linux-2.6/jdelvare-hwmon/
Thanks.

 drivers/hwmon/lm90.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-2.6.27-rc3.orig/drivers/hwmon/lm90.c	2008-08-19 15:40:14.000000000 +0200
+++ linux-2.6.27-rc3/drivers/hwmon/lm90.c	2008-08-19 15:50:20.000000000 +0200
@@ -742,9 +742,9 @@ static int lm90_detect(struct i2c_client
 		}
 
 		if (kind <= 0) { /* identification failed */
-			dev_info(&adapter->dev,
-			    "Unsupported chip (man_id=0x%02X, "
-			    "chip_id=0x%02X).\n", man_id, chip_id);
+			dev_dbg(&adapter->dev,
+				"Unsupported chip at 0x%02x (man_id=0x%02X, "
+				"chip_id=0x%02X)\n", address, man_id, chip_id);
 			return -ENODEV;
 		}
 	}


-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux