提交 78a18dbf 编写于 作者: C Christophe Leroy 提交者: Michael Ellerman

powerpc/mm: On PPC32, display 32 bits addresses in page table dump

Signed-off-by: NChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 fd893fe5
......@@ -295,8 +295,13 @@ static void dump_addr(struct pg_state *st, unsigned long addr)
const char *unit = units;
unsigned long delta;
#ifdef CONFIG_PPC64
seq_printf(st->seq, "0x%016lx-0x%016lx ", st->start_address, addr-1);
seq_printf(st->seq, "0x%016lx ", st->start_pa);
#else
seq_printf(st->seq, "0x%08lx-0x%08lx ", st->start_address, addr - 1);
seq_printf(st->seq, "0x%08lx ", st->start_pa);
#endif
delta = (addr - st->start_address) >> 10;
/* Work out what appropriate unit to use */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册