Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=45f2acc484b31d429eb1359c48ea5cd3acb869cd
Commit:     45f2acc484b31d429eb1359c48ea5cd3acb869cd
Parent:     e142e2a30787e9fa1bf0f66aa1d01727ce718cc7
Author:     Jean Delvare <[EMAIL PROTECTED]>
AuthorDate: Sun May 27 22:17:43 2007 +0200
Committer:  Jean Delvare <[EMAIL PROTECTED]>
CommitDate: Sun May 27 22:17:43 2007 +0200

    hwmon-vid: Don't spam the logs when VRM version is missing
    
    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 <[EMAIL PROTECTED]>
    Acked-by: Rudolf Marek <[EMAIL PROTECTED]>
---
 drivers/hwmon/hwmon-vid.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/hwmon/hwmon-vid.c b/drivers/hwmon/hwmon-vid.c
index 5aab23b..f17e771 100644
--- a/drivers/hwmon/hwmon-vid.c
+++ b/drivers/hwmon/hwmon-vid.c
@@ -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 unsupported "
+                              "VRM version (%u)\n", (unsigned int)vrm);
                return 0;
        }
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to