Message ID | 20170413124140.853856E664@localhost.localdomain (mailing list archive) |
---|---|
State | Accepted |
Commit | e1f2c9d97d932812d17509e86246c69220849a23 |
Headers | show |
On Thu, 2017-04-13 at 12:41:40 UTC, Christophe Leroy wrote:
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/e1f2c9d97d932812d17509e86246c6
cheers
diff --git a/arch/powerpc/mm/dump_linuxpagetables.c b/arch/powerpc/mm/dump_linuxpagetables.c index 98b7b07c6863..05109d7fa027 100644 --- a/arch/powerpc/mm/dump_linuxpagetables.c +++ b/arch/powerpc/mm/dump_linuxpagetables.c @@ -271,7 +271,11 @@ static void dump_addr(struct pg_state *st, unsigned long addr) const char *unit = units; unsigned long delta; +#ifdef CONFIG_PPC32 + seq_printf(st->seq, "0x%08lx-0x%08lx ", st->start_address, addr - 1); +#else seq_printf(st->seq, "0x%016lx-0x%016lx ", st->start_address, addr-1); +#endif delta = (addr - st->start_address) >> 10; /* Work out what appropriate unit to use */ while (!(delta & 1023) && unit[1]) {
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> --- arch/powerpc/mm/dump_linuxpagetables.c | 4 ++++ 1 file changed, 4 insertions(+)