Skip to content

Commit 4b6e8e9

Browse files
ppailletspasdeloup
authored andcommitted
feat(st-regulator): improve out of memory message
Improve out of memory message when to many regulators try to register. Signed-off-by: Pascal Paillet <[email protected]> Change-Id: I4fc4db87a6364bbc8f429796cbf03807865c612d Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/271770 Reviewed-by: CITOOLS <[email protected]> Reviewed-by: CIBUILD <[email protected]> Reviewed-by: Yann GAUTIER <[email protected]> Reviewed-by: Sebastien PASDELOUP <[email protected]> Domain-Review: Yann GAUTIER <[email protected]>
1 parent b751f78 commit 4b6e8e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/regulator_core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ int regulator_register(const struct regul_description *desc, int node)
811811
}
812812

813813
if (rdev == rdev_array + PLAT_NB_RDEVS) {
814-
WARN("out of memory\n");
814+
WARN("Not enough place for regulators, PLAT_NB_RDEVS should be increased.\n");
815815
return -ENOMEM;
816816
}
817817

0 commit comments

Comments
 (0)