From: Pali Rohár Date: Thu, 26 May 2022 12:36:03 +0000 (+0200) Subject: powerpc: bootm: Fix sizes in memory adjusting warning X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=66b2dd9ac3de47376f0ceae22c586a9d725fe071;p=u-boot.git powerpc: bootm: Fix sizes in memory adjusting warning Old size is stored in size variable and new size is in bootm_size variable. Signed-off-by: Pali Rohár --- diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c index 3b43066bb4..d365705856 100644 --- a/arch/powerpc/lib/bootm.c +++ b/arch/powerpc/lib/bootm.c @@ -137,7 +137,8 @@ void arch_lmb_reserve(struct lmb *lmb) if (size < bootm_size) { ulong base = bootmap_base + size; - printf("WARNING: adjusting available memory to %lx\n", size); + printf("WARNING: adjusting available memory from 0x%lx to 0x%llx\n", + size, (unsigned long long)bootm_size); lmb_reserve(lmb, base, bootm_size - size); }