linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/mm: On PPC32, display 32 bits addresses in page table dump
@ 2017-04-13 12:41 Christophe Leroy
  2017-04-27 10:30 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Leroy @ 2017-04-13 12:41 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
	Scott Wood, Rashmica Gupta
  Cc: linux-kernel, linuxppc-dev

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: powerpc/mm: On PPC32, display 32 bits addresses in page table dump
  2017-04-13 12:41 [PATCH] powerpc/mm: On PPC32, display 32 bits addresses in page table dump Christophe Leroy
@ 2017-04-27 10:30 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2017-04-27 10:30 UTC (permalink / raw)
  To: Christophe Leroy, Benjamin Herrenschmidt, Paul Mackerras,
	Scott Wood, Rashmica Gupta
  Cc: linuxppc-dev, linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-27 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-13 12:41 [PATCH] powerpc/mm: On PPC32, display 32 bits addresses in page table dump Christophe Leroy
2017-04-27 10:30 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).