summaryrefslogtreecommitdiff
path: root/lib/bzlib_private.h
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 /lib/bzlib_private.h
parent59e890ef7bf5b80d96802e115255f969491ef645 (diff)
downloadu-boot-imx-1eebd14b79024f34925b79cb264242fac1bdc1b9.zip
u-boot-imx-1eebd14b79024f34925b79cb264242fac1bdc1b9.tar.gz
u-boot-imx-1eebd14b79024f34925b79cb264242fac1bdc1b9.tar.bz2
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 'lib/bzlib_private.h')
0 files changed, 0 insertions, 0 deletions