From 14a2e3ee1f83b25f291558eab2e24dd4868904d7 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Thu, 26 Apr 2012 07:04:21 -0700 Subject: [PATCH] Update debug message for invalid source register Signed-off-by: Guenter Roeck --- nct6775.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nct6775.c b/nct6775.c index 6e21ffb..ea67d79 100644 --- 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; } -- 2.39.5