diff options
author | Johan Jonker | 2023-03-13 01:32:57 +0100 |
---|---|---|
committer | Kever Yang | 2023-05-06 17:28:18 +0800 |
commit | 84404d8165387d9bdb990458f3503d58fb1fd389 (patch) | |
tree | 63dac85cf98884f66fca2780b6d2460df9fd9158 /drivers/phy/phy-stm32-usbphyc.c | |
parent | 0d01046ea366842d4f01e693579c33229eb523d8 (diff) |
drivers: fix debug string with fdt_addr_t input
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU
can expect 64-bit data from the device tree parser, so fix some
debug strings with fdt_addr_t to be able to handle both sizes.
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/phy/phy-stm32-usbphyc.c')
-rw-r--r-- | drivers/phy/phy-stm32-usbphyc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c index dcf2194e9a7..15bd60ca8c5 100644 --- a/drivers/phy/phy-stm32-usbphyc.c +++ b/drivers/phy/phy-stm32-usbphyc.c @@ -583,8 +583,8 @@ static int stm32_usbphyc_probe(struct udevice *dev) phy_id = ofnode_read_u32_default(node, "reg", FDT_ADDR_T_NONE); if (phy_id >= MAX_PHYS) { - dev_err(dev, "invalid reg value %lx for %s\n", - phy_id, ofnode_get_name(node)); + dev_err(dev, "invalid reg value %llx for %s\n", + (fdt64_t)phy_id, ofnode_get_name(node)); return -ENOENT; } |