[PATCH 2/3] pwm: ti: am33xx: Fix build warnings in dev_dbg()

Sukrut Bellary sbellary at baylibre.com
Wed Apr 23 10:42:48 CEST 2025


If CONFIG_PWM_TI_EHRPWM is enabled, it throws the build warning
in dev_dbg() due to incorrect format specifier as,

"warning: format ‘%lx’ expects argument of type ‘long unsigned int’,
but argument 4 has type ‘fdt_addr_t’ {aka ‘unsigned int’}"

Fix this with the correct format specifier.

Signed-off-by: Sukrut Bellary <sbellary at baylibre.com>
---
 drivers/pwm/pwm-ti-ehrpwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/pwm-ti-ehrpwm.c b/drivers/pwm/pwm-ti-ehrpwm.c
index 563109ef0f80..135ea3b43212 100644
--- a/drivers/pwm/pwm-ti-ehrpwm.c
+++ b/drivers/pwm/pwm-ti-ehrpwm.c
@@ -399,7 +399,7 @@ static int ti_ehrpwm_of_to_plat(struct udevice *dev)
 		return -EINVAL;
 	}
 
-	dev_dbg(dev, "regs=0x%08lx\n", priv->regs);
+	dev_dbg(dev, "regs=0x%08x\n", priv->regs);
 	return 0;
 }
 
-- 
2.34.1



More information about the U-Boot mailing list