diff options
| author | Pali Rohár <[email protected]> | 2022-05-26 14:36:03 +0200 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2022-06-20 15:52:45 +0800 |
| commit | 66b2dd9ac3de47376f0ceae22c586a9d725fe071 (patch) | |
| tree | 4f98db0ae4cbf62ab7e9fd0d4b8271c0d5f3cae9 | |
| parent | 676f682bad2ed93a20fcf35dd5af5163d11c126f (diff) | |
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 <[email protected]>
| -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 3b43066bb4f..d365705856d 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); } |
