aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_mem.c
diff options
context:
space:
mode:
authorThierry Reding2014-11-12 18:26:47 -0700
committerTom Rini2014-11-23 06:49:01 -0500
commit1eebd14b79024f34925b79cb264242fac1bdc1b9 (patch)
treed21295fa69298fc1c9116cda4ffc8a26bc2de81f /common/cmd_mem.c
parent59e890ef7bf5b80d96802e115255f969491ef645 (diff)
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>
Diffstat (limited to 'common/cmd_mem.c')
0 files changed, 0 insertions, 0 deletions