From: Thierry Reding Date: Tue, 12 Mar 2019 10:38:02 +0000 (+0100) Subject: sandbox: Properly print physical addresses X-Git-Tag: v2019.07-rc1~25^2~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=553a1a26e8f21fc252a2600e1708e403b79874a6;p=oweals%2Fu-boot.git sandbox: Properly print physical addresses Use the %pap printf specifier to print physical addresses. The physical address is passed by reference and hence avoids the need to play tricks with the preprocessor to use the correct specifier. Signed-off-by: Thierry Reding --- diff --git a/arch/sandbox/lib/pci_io.c b/arch/sandbox/lib/pci_io.c index 5039973cd7..01822c6069 100644 --- a/arch/sandbox/lib/pci_io.c +++ b/arch/sandbox/lib/pci_io.c @@ -34,7 +34,7 @@ int pci_map_physmem(phys_addr_t paddr, unsigned long *lenp, return 0; } - debug("%s: failed: addr=%x\n", __func__, paddr); + debug("%s: failed: addr=%pap\n", __func__, &paddr); return -ENOSYS; }