mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
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>
This commit is contained in:
parent
0c425ae4b7
commit
553a1a26e8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue