powerpc: bootm: Fix sizes in memory adjusting warning
authorPali Rohár <pali@kernel.org>
Thu, 26 May 2022 12:36:03 +0000 (14:36 +0200)
committerPeng Fan <peng.fan@nxp.com>
Mon, 20 Jun 2022 07:52:45 +0000 (15:52 +0800)
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

index 3b43066..d365705 100644 (file)
@@ -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);
        }