From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3w3gQc2vKGzDqFq for ; Thu, 13 Apr 2017 22:41:44 +1000 (AEST) From: Christophe Leroy Subject: [PATCH] powerpc/mm: On PPC32, display 32 bits addresses in page table dump To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Scott Wood , Rashmica Gupta Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Message-Id: <20170413124140.853856E664@localhost.localdomain> Date: Thu, 13 Apr 2017 14:41:40 +0200 (CEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Signed-off-by: Christophe Leroy --- arch/powerpc/mm/dump_linuxpagetables.c | 4 ++++ 1 file changed, 4 insertions(+) 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]) { -- 2.12.0