Skip to contentSkip to conversation

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

PATCH Applied Christophe Leroy 2 participants 2 messages Apr 13, 2017 – Apr 27, 2017 PowerPC

lore
Share & tools
lore
#0 lore raw

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

---
 arch/powerpc/mm/dump_linuxpagetables.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/powerpc/mm/dump_linuxpagetables.c +4 -0
index 98b7b07c6863..05109d7fa027 100644
@@ -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]) {
Signature · 1 line
2.12.0