aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2023-10-27 16:42:58 +0200
committerPatrice Chotard <patrice.chotard@foss.st.com>2023-11-13 10:55:38 +0100
commitee15c72da261b2d4b27ffcdccc2af8b2797c37fc (patch)
tree85393a75dc4086c8b7662902d2c21eeadbcbec1c /arch/arm/mach-stm32mp
parentdba8d92a3da482f9e3d44181711ce4e08e2ac6b1 (diff)
downloadu-boot-ee15c72da261b2d4b27ffcdccc2af8b2797c37fc.zip
u-boot-ee15c72da261b2d4b27ffcdccc2af8b2797c37fc.tar.gz
u-boot-ee15c72da261b2d4b27ffcdccc2af8b2797c37fc.tar.bz2
stm32mp: dram_init: Fix AARCH64 compilation warnings
When building with AARCH64 defconfig, we got warnings for debug message - format '%x' expects argument of type 'unsigned int', but argument 3 has type 'size_t' {aka 'long unsigned int'}). - format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' {aka 'long long unsigned int'} Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'arch/arm/mach-stm32mp')
-rw-r--r--arch/arm/mach-stm32mp/dram_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-stm32mp/dram_init.c b/arch/arm/mach-stm32mp/dram_init.c
index a1e77a4..cb35ed6 100644
--- a/arch/arm/mach-stm32mp/dram_init.c
+++ b/arch/arm/mach-stm32mp/dram_init.c
@@ -36,7 +36,7 @@ int dram_init(void)
log_debug("Cannot get RAM size: %d\n", ret);
return ret;
}
- log_debug("RAM init base=%lx, size=%x\n", ram.base, ram.size);
+ log_debug("RAM init base=%p, size=%zx\n", (void *)ram.base, ram.size);
gd->ram_size = ram.size;