* [PATCH] powerpc: bootm: Fix sizes in memory adjusting warning
@ 2022-05-26 12:36 Pali Rohár
0 siblings, 0 replies; only message in thread
From: Pali Rohár @ 2022-05-26 12:36 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: u-boot
Old size is stored in size variable and new size is in bootm_size variable.
Signed-off-by: Pali Rohár <pali@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-26 12:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-26 12:36 [PATCH] powerpc: bootm: Fix sizes in memory adjusting warning Pali Rohár
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox