mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
committed by
Patrice Chotard
parent
dba8d92a3d
commit
ee15c72da2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user