[PATCH 1/1] bootcount: fix printf() code

Tom Rini trini at konsulko.com
Sat Jan 29 19:49:49 CET 2022


On Wed, Jan 19, 2022 at 01:33:43AM +0100, Heinrich Schuchardt wrote:

> For printing phys_addr_t we should use %pa to avoid warning like:
> 
> drivers/bootcount/bootcount_syscon.c:110:17: note: in expansion of macro ‘dev_err’
>   110 |                 dev_err(dev, "%s: Unsupported register size: %d\n", __func__,
>       |                 ^~~~~~~
> 
> seen for sandbox_defconfig with CONFIG_PHYS_64BIT=y.
> 
> Cf. commit 1eebd14b7902 ("vsprintf: Add modifier for phys_addr_t")
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220129/f9c7896b/attachment.sig>


More information about the U-Boot mailing list