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

Simon Glass sjg at chromium.org
Thu Jan 27 16:05:52 CET 2022


On Tue, 18 Jan 2022 at 17:33, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> 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>
> ---
>  drivers/bootcount/bootcount_syscon.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list