regulator: Fix argument format type errors in error prints
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 21 Jul 2011 14:07:37 +0000 (15:07 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 22 Jul 2011 10:46:57 +0000 (11:46 +0100)
We need to dereference the pointers to print their values.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c

index a019544..d8e6a42 100644 (file)
@@ -153,7 +153,7 @@ static int regulator_check_voltage(struct regulator_dev *rdev,
 
        if (*min_uV > *max_uV) {
                rdev_err(rdev, "unsupportable voltage range: %d-%duV\n",
-                        min_uV, max_uV);
+                        *min_uV, *max_uV);
                return -EINVAL;
        }
 
@@ -210,7 +210,7 @@ static int regulator_check_current_limit(struct regulator_dev *rdev,
 
        if (*min_uA > *max_uA) {
                rdev_err(rdev, "unsupportable current range: %d-%duA\n",
-                        min_uA, max_uA);
+                        *min_uA, *max_uA);
                return -EINVAL;
        }