Skip to contentSkip to conversation

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

PATCH In review Jean Delvare 2 participants 2 messages Aug 19, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: (lm90) Don't spam the kernel log

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.

---
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(-)
drivers/hwmon/lm90.c +3 -3
@@ -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;
 		}
 	}
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw
Quoted 4 lines · Jean Delvare

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.

Quoted 8 lines

---
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.

Hi Jean,

Tested on top of the lm90 patches. I haven't added the adt one, but that should be a non-issue. The patch looks good, applies, compiles and functions correctly, feel free to ack me.

Martyn

Signature · 26 lines
Martyn Welch MEng MPhil MIET
Principal Software Engineer

GE Fanuc Intelligent Platforms
Tove Valley Business Park, Towcester,
Northants, NN12 6PF, United Kingdom

Telephone: +44 (0) 1327 359444
Direct Dial: +44 (0) 1327 322748
Fax: +44 (0) 1327 322800
email: [email protected]
web: www.gefanuc.com

GE Fanuc Intelligent Platforms Ltd, registered in England and Wales
(3828642) at 100 Barbirolli Square, Manchester, M2 3AB, VAT GB 729 849
476

GE Fanuc Intelligent Platforms Confidential and Proprietary. If you
have received this message in error please notify us immediately and
permanently remove it from your system and destroy any printed
hardcopies.  

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors