diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-01-19 03:33:43 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-29 01:58:41 +0300 |
commit | 05ec899140d2f602544f9ec6aa753ab36feff0b0 (patch) | |
tree | 4d25bc9fa26ede922613b34aff73f810ab8160e4 /drivers/bootcount | |
parent | 562274730a959094c85e1be5e0eb344ea272432a (diff) | |
download | u-boot-05ec899140d2f602544f9ec6aa753ab36feff0b0.tar.xz |
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>
Diffstat (limited to 'drivers/bootcount')
-rw-r--r-- | drivers/bootcount/bootcount_syscon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bootcount/bootcount_syscon.c b/drivers/bootcount/bootcount_syscon.c index 413fd5bb9d..f80d87071d 100644 --- a/drivers/bootcount/bootcount_syscon.c +++ b/drivers/bootcount/bootcount_syscon.c @@ -107,8 +107,8 @@ static int bootcount_syscon_of_to_plat(struct udevice *dev) return -EINVAL; } if (reg_size != 4) { - dev_err(dev, "%s: Unsupported register size: %d\n", __func__, - reg_size); + dev_err(dev, "%s: Unsupported register size: %pa\n", __func__, + ®_size); return -EINVAL; } |