hwmon: tegra: tsensor: more error prints
Bitan Biswas [Wed, 17 Aug 2011 10:30:17 +0000 (15:30 +0530)]
In case of tsensor probe failure in temperature
calculation sanity test step, added more prints.

bug 865024

Original-Change-Id: Ie74b25cc162fc17c83127d832c14dbd1c603a8e5
Reviewed-on: http://git-master/r/47518
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rec20a2726eae6e0779761beb6510f59ef3aab6f1

drivers/hwmon/tegra-tsensor.c

index 025be54..11d478e 100644 (file)
@@ -1170,6 +1170,11 @@ static bool test_temperature_algo(struct tegra_tsensor_data *data)
        }
 
 endLabel:
+       if (!result)
+               pr_info("NO Match: actual=%d,"
+                       " calc counter2=%d, counter1=%d\n", actual_counter,
+                       counter2, counter1);
+
        return result;
 }