On Wed, Nov 12, 2014 at 06:26:47PM -0700, Simon Glass wrote:

> From: Thierry Reding <tred...@nvidia.com>
> 
> 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 <tred...@nvidia.com>
> Tested-by: Stephen Warren <swar...@nvidia.com>
> Signed-off-by: Simon Glass <s...@chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to