summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-03-12 11:38:02 +0100
committerSimon Glass <sjg@chromium.org>2019-04-11 20:10:05 -0600
commit553a1a26e8f21fc252a2600e1708e403b79874a6 (patch)
treeac487ea35275b32d3f1f7d5aa5d1ff15d47dff4e
parent0c425ae4b735d13bdc5f6cc1b7cef2ba130b5c4e (diff)
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 <treding@nvidia.com>
-rw-r--r--arch/sandbox/lib/pci_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/lib/pci_io.c b/arch/sandbox/lib/pci_io.c
index 5039973cd7a..01822c60695 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;
}