]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pwm: ti: am33xx: Fix build warnings in dev_dbg()
authorSukrut Bellary <sbellary@baylibre.com>
Fri, 30 May 2025 21:22:31 +0000 (14:22 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 12 Jun 2025 22:26:56 +0000 (16:26 -0600)
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@baylibre.com>
drivers/pwm/pwm-ti-ehrpwm.c

index 563109ef0f806e74fd6e15d952e1de5a91e0e3a8..135ea3b432126a709f5f6085b458ee80d9aa39df 100644 (file)
@@ -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;
 }