Skip to content

Commit 75c48ad

Browse files
Uwe Kleine-Königbroonie
authored andcommitted
regulator: Mention regulator id in error message about dummy supplies
With the name that is currently looked up it is considerably easier to understand the issue and fix the warning. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9fcf6ef commit 75c48ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/regulator/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ struct regulator *_regulator_get(struct device *dev, const char *id,
21952195

21962196
if (!have_full_constraints()) {
21972197
dev_warn(dev,
2198-
"incomplete constraints, dummy supplies not allowed\n");
2198+
"incomplete constraints, dummy supplies not allowed (id=%s)\n", id);
21992199
return ERR_PTR(-ENODEV);
22002200
}
22012201

@@ -2213,7 +2213,7 @@ struct regulator *_regulator_get(struct device *dev, const char *id,
22132213

22142214
case EXCLUSIVE_GET:
22152215
dev_warn(dev,
2216-
"dummy supplies not allowed for exclusive requests\n");
2216+
"dummy supplies not allowed for exclusive requests (id=%s)\n", id);
22172217
fallthrough;
22182218

22192219
default:

0 commit comments

Comments
 (0)