bootcount: fix printf() code
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 19 Jan 2022 00:33:43 +0000 (01:33 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 28 Jan 2022 22:58:41 +0000 (17:58 -0500)
commit05ec899140d2f602544f9ec6aa753ab36feff0b0
tree4d25bc9fa26ede922613b34aff73f810ab8160e4
parent562274730a959094c85e1be5e0eb344ea272432a
bootcount: fix printf() code

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@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/bootcount/bootcount_syscon.c