[PATCH v2 2/2] power: regulator: replace dev_dbg() by dev_err() in regulator_post_bind()
Jaehoon Chung
jh80.chung at samsung.com
Wed Dec 4 00:47:26 CET 2024
> -----Original Message-----
> From: Patrice Chotard <patrice.chotard at foss.st.com>
> Sent: Tuesday, December 3, 2024 7:06 PM
> To: u-boot at lists.denx.de
> Cc: Patrice CHOTARD <patrice.chotard at foss.st.com>; Patrick DELAUNAY <patrick.delaunay at foss.st.com>; U-
> Boot STM32 <uboot-stm32 at st-md-mailman.stormreply.com>; Jaehoon Chung <jh80.chung at samsung.com>; Jonas
> Karlman <jonas at kwiboo.se>; Marek Vasut <marex at denx.de>; Quentin Schulz <quentin.schulz at cherry.de>;
> Simon Glass <sjg at chromium.org>; Tom Rini <trini at konsulko.com>
> Subject: [PATCH v2 2/2] 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 <patrice.chotard at foss.st.com>
Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>
Best Regards,
Jaehoon Chung
>
> ---
>
> Changes in v2:
> - split initial patch into 2 commits to separate dev_dbg() and
> dev_err() migration.
>
> 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 80ea5e65d48..09567eb9dbb 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.25.1
More information about the U-Boot
mailing list