diff options
author | Pali Rohár <pali@kernel.org> | 2022-05-26 14:36:03 +0200 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2022-06-20 15:52:45 +0800 |
commit | 66b2dd9ac3de47376f0ceae22c586a9d725fe071 (patch) | |
tree | 4f98db0ae4cbf62ab7e9fd0d4b8271c0d5f3cae9 /arch/powerpc | |
parent | 676f682bad2ed93a20fcf35dd5af5163d11c126f (diff) | |
download | u-boot-66b2dd9ac3de47376f0ceae22c586a9d725fe071.zip u-boot-66b2dd9ac3de47376f0ceae22c586a9d725fe071.tar.gz u-boot-66b2dd9ac3de47376f0ceae22c586a9d725fe071.tar.bz2 |
powerpc: bootm: Fix sizes in memory adjusting warning
Old size is stored in size variable and new size is in bootm_size variable.
Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/lib/bootm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c index 3b43066..d365705 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); } |