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 1eebd14b79
("vsprintf: Add modifier for phys_addr_t")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
562274730a
commit
05ec899140
@ -107,8 +107,8 @@ static int bootcount_syscon_of_to_plat(struct udevice *dev)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
if (reg_size != 4) {
|
if (reg_size != 4) {
|
||||||
dev_err(dev, "%s: Unsupported register size: %d\n", __func__,
|
dev_err(dev, "%s: Unsupported register size: %pa\n", __func__,
|
||||||
reg_size);
|
®_size);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user