[PATCH] powerpc: bootm: Fix sizes in memory adjusting warning

Pali Rohár pali at kernel.org
Thu May 26 14:36:03 CEST 2022


Old size is stored in size variable and new size is in bootm_size variable.

Signed-off-by: Pali Rohár <pali at kernel.org>
---
 arch/powerpc/lib/bootm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c
index 8d65047aa4d4..2704f6562803 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);
 	}
 
-- 
2.20.1



More information about the U-Boot mailing list