Re: Linux 2.6.13-rc1 - [PATCH] Don't fill up log with atxp1 vcorechange message

From: Prakash Punnoor
Date: Wed Jun 29 2005 - 07:15:40 EST


Hi,

I am using atxp1 module to change vcore on my NForce2 via userspace daemon
(see punnoor.de). Currently atxp1 module will write to the log on every vcore
change, thus filling up my log - which I don't want. I am no kernel coder, but
I guess, this one-liner will change this behaviour in a wanted way, ie output
will be made for debug purposes only. (Please use the attached patch, if
inlined one got fsked up by TB.)

Cheers,

Prakash



Signed-off-by: Prakash Punnoor <prakash@xxxxxxxxxx>



--- drivers/i2c/chips/atxp1.c~ 2005-06-29 13:59:04.000000000 +0200
+++ drivers/i2c/chips/atxp1.c 2005-06-29 13:59:22.164237992 +0200
@@ -144,7 +144,7 @@
if (vid == cvid)
return count;

- dev_info(dev, "Setting VCore to %d mV (0x%02x)\n", vcore, vid);
+ dev_dbg(dev, "Setting VCore to %d mV (0x%02x)\n", vcore, vid);

/* Write every 25 mV step to increase stability */
if (cvid > vid) {



--- drivers/i2c/chips/atxp1.c~ 2005-06-29 13:59:04.000000000 +0200
+++ drivers/i2c/chips/atxp1.c 2005-06-29 13:59:22.164237992 +0200
@@ -144,7 +144,7 @@
if (vid == cvid)
return count;

- dev_info(dev, "Setting VCore to %d mV (0x%02x)\n", vcore, vid);
+ dev_dbg(dev, "Setting VCore to %d mV (0x%02x)\n", vcore, vid);

/* Write every 25 mV step to increase stability */
if (cvid > vid) {

Attachment: signature.asc
Description: OpenPGP digital signature