regulator: Fix argument format type errors in error prints
We need to dereference the pointers to print their values.
Signed-off-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index a019544..d8e6a42 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -153,7 +153,7 @@
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 @@
if (*min_uA > *max_uA) {
rdev_err(rdev, "unsupportable current range: %d-%duA\n",
- min_uA, max_uA);
+ *min_uA, *max_uA);
return -EINVAL;
}