]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/mtd/nvmxip: Print phys_addr_t without warnings on both 32bit and 64bit systems
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 23 Aug 2023 00:18:19 +0000 (02:18 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 30 Aug 2023 21:56:21 +0000 (17:56 -0400)
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>
drivers/mtd/nvmxip/nvmxip_qspi.c

index 1bf0d311fe36c76242032d1670d8f25594cbcb95..4d7471118a4c1394b6b510e6a05345c3ea143e9b 100644 (file)
@@ -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;
 }