regulator: core: Say what unsupportable voltage constraints are
Signed-off-by: Mark Brown <[email protected]>
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index e7fffd1..7fbbd82 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -883,7 +883,9 @@
/* final: [min_uV..max_uV] valid iff constraints valid */
if (max_uV < min_uV) {
- rdev_err(rdev, "unsupportable voltage constraints\n");
+ rdev_err(rdev,
+ "unsupportable voltage constraints %u-%uuV\n",
+ min_uV, max_uV);
return -EINVAL;
}