Skip to content

Commit

Permalink
regulator: Fix argument format type errors in error prints
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown authored and Liam Girdwood committed Jul 22, 2011
1 parent 1a6958e commit 54abd33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 54abd33

Please sign in to comment.