* [lm-sensors] [PATCH] hwmon-vid: Don't spam the logs when VRM
@ 2007-05-25 12:15 Jean Delvare
2007-05-25 12:17 ` Rudolf Marek
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2007-05-25 12:15 UTC (permalink / raw)
To: lm-sensors
If we cannot guess which VRM version the CPU uses, we set it to 0 and
log it. So we shouldn't spam the log each time vid_from_reg() is
later called with vrm 0.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Rudolf Marek <r.marek@assembler.cz>
---
Rudolf, is it OK with you? Please ack or nack.
drivers/hwmon/hwmon-vid.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- linux-2.6.22-rc2.orig/drivers/hwmon/hwmon-vid.c 2007-05-13 10:01:15.000000000 +0200
+++ linux-2.6.22-rc2/drivers/hwmon/hwmon-vid.c 2007-05-25 14:09:55.000000000 +0200
@@ -132,7 +132,9 @@ int vid_from_reg(int val, u8 vrm)
val &= 0x7f;
return(val > 0x77 ? 0 : (1500000 - (val * 12500) + 500) / 1000);
default: /* report 0 for unknown */
- printk(KERN_INFO "hwmon-vid: requested unknown VRM version\n");
+ if (vrm)
+ printk(KERN_WARNING "hwmon-vid: requested unknown "
+ "VRM version (%u)\n", (unsigned int)vrm);
return 0;
}
}
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-25 12:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-25 12:15 [lm-sensors] [PATCH] hwmon-vid: Don't spam the logs when VRM Jean Delvare
2007-05-25 12:17 ` Rudolf Marek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.