Commit 54abd335fda86d305845f9e62b4bc0997386eb66

Authored by Mark Brown
Committed by Liam Girdwood
1 parent 1a6958e79f

regulator: Fix argument format type errors in error prints

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

drivers/regulator/core.c
... ... @@ -153,7 +153,7 @@
153 153  
154 154 if (*min_uV > *max_uV) {
155 155 rdev_err(rdev, "unsupportable voltage range: %d-%duV\n",
156   - min_uV, max_uV);
  156 + *min_uV, *max_uV);
157 157 return -EINVAL;
158 158 }
159 159  
... ... @@ -210,7 +210,7 @@
210 210  
211 211 if (*min_uA > *max_uA) {
212 212 rdev_err(rdev, "unsupportable current range: %d-%duA\n",
213   - min_uA, max_uA);
  213 + *min_uA, *max_uA);
214 214 return -EINVAL;
215 215 }
216 216