diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-08-23 02:18:19 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-30 17:56:21 -0400 |
commit | 6539f71d1d85895afd60c68d039342447713ee50 (patch) | |
tree | 2603c6cabf23dbb51629ec514a0f03f344cbf2d8 | |
parent | 16be2bc72e1c1ce188214b71ba5c7c9d990e6021 (diff) | |
download | u-boot-6539f71d1d85895afd60c68d039342447713ee50.zip u-boot-6539f71d1d85895afd60c68d039342447713ee50.tar.gz u-boot-6539f71d1d85895afd60c68d039342447713ee50.tar.bz2 |
drivers/mtd/nvmxip: Print phys_addr_t without warnings on both 32bit and 64bit systems
Cast the address such that it can be printed without warnings
on both 32bit and 64bit systems. This really should use some
better print formatter, but for the lack of it, do it this way.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
-rw-r--r-- | drivers/mtd/nvmxip/nvmxip_qspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nvmxip/nvmxip_qspi.c b/drivers/mtd/nvmxip/nvmxip_qspi.c index 1bf0d31..4d74711 100644 --- a/drivers/mtd/nvmxip/nvmxip_qspi.c +++ b/drivers/mtd/nvmxip/nvmxip_qspi.c @@ -50,8 +50,8 @@ static int nvmxip_qspi_of_to_plat(struct udevice *dev) return -EINVAL; } - log_debug("[%s]: XIP device base addr: 0x%llx , lba_shift: %d , lbas: %lu\n", - dev->name, plat->phys_base, plat->lba_shift, plat->lba); + log_debug("[%s]: XIP device base addr: 0x%p , lba_shift: %d , lbas: %lu\n", + dev->name, (void *)(uintptr_t)plat->phys_base, plat->lba_shift, plat->lba); return 0; } |