]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 3b43066bb4f21c8e67ce1a4e1895d5a4a6b769c5..d365705856dd7b5157433f6d778502b94f5488fd 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);
        }