[PATCH] regulator: Fix argument format type errors in error prints

From: Mark Brown
Date: Thu Jul 21 2011 - 10:07:52 EST


We need to dereference the pointers to print their values.

Signed-off-by: Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
---
drivers/regulator/core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 3700d09..412e281 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -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;
}

--
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/