Searched hist:"1 eebd14b79024f34925b79cb264242fac1bdc1b9" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/lib/ |
| H A D | vsprintf.c | 1eebd14b79024f34925b79cb264242fac1bdc1b9 Thu Nov 13 01:26:47 UTC 2014 Thierry Reding <treding@nvidia.com> vsprintf: Add modifier for phys_addr_t
Provide a new modifier to vsprintf() to print phys_addr_t variables to avoid having to cast or #ifdef when printing them out. The %pa modifier is used for this purpose, so phys_addr_t variables need to be passed by reference, like so:
phys_addr_t start = 0;
printf("start: %pa\n", &start);
Depending on the size of phys_addr_t this will print out the address with 8 or 16 hexadecimal digits following a 0x prefix.
Signed-off-by: Thierry Reding <treding@nvidia.com> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Simon Glass <sjg@chromium.org>
|