Skip to contentSkip to conversation

powerpc: bootm: Fix sizes in memory adjusting warning

PATCH New Pali Rohár 1 participant 1 message May 26, 2022 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: bootm: Fix sizes in memory adjusting warning

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

---
 arch/powerpc/lib/bootm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/lib/bootm.c +2 -1
index 8d65047aa4d4..2704f6562803 100644
@@ -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);
 	}
 
Signature · 1 line
2.20.1