diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-04-13 14:41:40 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-04-27 22:20:28 +1000 |
commit | 78a18dbf0104641662d6c28e6832cc24776ba2bc (patch) | |
tree | afdc87d46ed17d554ad9acfc83840da95382ee4b /arch/powerpc/mm/dump_linuxpagetables.c | |
parent | fd893fe56a1307d348fe5c077eb9b654288ce0c5 (diff) | |
download | linux-78a18dbf0104641662d6c28e6832cc24776ba2bc.tar.bz2 |
powerpc/mm: On PPC32, display 32 bits addresses in page table dump
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/dump_linuxpagetables.c')
-rw-r--r-- | arch/powerpc/mm/dump_linuxpagetables.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/mm/dump_linuxpagetables.c b/arch/powerpc/mm/dump_linuxpagetables.c index ec4906994726..a5b8c16c3d69 100644 --- a/arch/powerpc/mm/dump_linuxpagetables.c +++ b/arch/powerpc/mm/dump_linuxpagetables.c @@ -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 */ |