From 74cd1af1124fbe3cd16c58bc3ad9ff1f9c6ecf3e Mon Sep 17 00:00:00 2001 From: Patrice Chotard Date: Tue, 3 Dec 2024 11:06:11 +0100 Subject: [PATCH] power: regulator: replace dev_dbg() by dev_err() in regulator_post_bind() To ease debugging, use dev_err() instead of dev_dbg() for alerting when regulator has nonunique value. Signed-off-by: Patrice Chotard Reviewed-by: Quentin Schulz Reviewed-by: Jaehoon Chung --- drivers/power/regulator/regulator-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index 80ea5e65d4..09567eb9db 100644 --- a/drivers/power/regulator/regulator-uclass.c +++ b/drivers/power/regulator/regulator-uclass.c @@ -446,7 +446,7 @@ static int regulator_post_bind(struct udevice *dev) } if (!regulator_name_is_unique(dev, uc_pdata->name)) { - dev_dbg(dev, "'%s' has nonunique value: '%s\n", + dev_err(dev, "'%s' has nonunique value: '%s\n", property, uc_pdata->name); return -EINVAL; } -- 2.39.5