summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-12 18:26:47 -0700
committerTom Rini <trini@ti.com>2014-11-23 06:49:01 -0500
commit1eebd14b79024f34925b79cb264242fac1bdc1b9 (patch)
treed21295fa69298fc1c9116cda4ffc8a26bc2de81f /doc
parent59e890ef7bf5b80d96802e115255f969491ef645 (diff)
downloadblackbird-obmc-uboot-1eebd14b79024f34925b79cb264242fac1bdc1b9.tar.gz
blackbird-obmc-uboot-1eebd14b79024f34925b79cb264242fac1bdc1b9.zip
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 'doc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud