]> git.sur5r.net Git - groeck-nct6775/commitdiff
Update debug message for invalid source register
authorGuenter Roeck <linux@roeck-us.net>
Thu, 26 Apr 2012 14:04:21 +0000 (07:04 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 26 Apr 2012 14:04:21 +0000 (07:04 -0700)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
nct6775.c

index 6e21ffbd34d5372538d07acbde5971b84fa572cd..ea67d791e39c502a7292eba6074175531f6b3da2 100644 (file)
--- a/nct6775.c
+++ b/nct6775.c
@@ -3332,7 +3332,9 @@ static int __devinit nct6775_probe(struct platform_device *pdev)
 
                if (src >= data->temp_label_num ||
                    !strlen(data->temp_label[src])) {
-                       dev_info(dev, "Invalid temperature source %d\n", src);
+                       dev_info(dev,
+                                "Invalid temperature source %d at index %d, source register 0x%x, temp register 0x%x\n",
+                                src, i, data->REG_TEMP_SOURCE[i], reg_temp[i]);
                        continue;
                }