arm: mm: correct printing when enabling VMALLOC_SAVING

keep the prev_reg so that we get correct printing if we have more
than two carve-out areas.

Change-Id: I931a091d3a9e19af36062e2a3fa15ec84ef5f7e4
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
This commit is contained in:
Zhenhua Huang 2019-12-10 16:50:29 +08:00 committed by Qingqing Zhou
parent 0dc78b3282
commit 92d7e39a93

View file

@ -540,6 +540,8 @@ static void print_vmalloc_lowmem_info(void)
" lowmem : 0x%08lx - 0x%08lx (%4ld MB)\n",
MLM((unsigned long)__va(start_phys),
(unsigned long)__va(end_phys)));
prev_reg = reg;
}
}
#endif