summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2009-04-13 23:51:46 -0700
committerIngo Molnar <mingo@elte.hu>2009-04-14 11:50:22 +0200
commit6424fb38667fffbbb1b90be0ffd9a0c540db6a4b (patch)
tree18dee03bcb98508ea886b4e1563a3c3972ec0d61 /arch
parent66aa230e437d89ca56224135f617e2d8e391a3ef (diff)
downloadop-kernel-dev-6424fb38667fffbbb1b90be0ffd9a0c540db6a4b.zip
op-kernel-dev-6424fb38667fffbbb1b90be0ffd9a0c540db6a4b.tar.gz
x86: remove (null) in /sys kernel_page_tables
Impact: cleanup %p prints out 0x000000000000000 as (null) so use %lx instead. Signed-off-by: Yinghai Lu <yinghai@kernel.org> LKML-Reference: <49E43282.1090607@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/mm/dump_pagetables.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index e7277cb..a725b7f 100644
--- a/arch/x86/mm/dump_pagetables.c
+++ b/arch/x86/mm/dump_pagetables.c
@@ -161,13 +161,14 @@ static void note_page(struct seq_file *m, struct pg_state *st,
st->current_address >= st->marker[1].start_address) {
const char *unit = units;
unsigned long delta;
+ int width = sizeof(unsigned long) * 2;
/*
* Now print the actual finished series
*/
- seq_printf(m, "0x%p-0x%p ",
- (void *)st->start_address,
- (void *)st->current_address);
+ seq_printf(m, "0x%0*lx-0x%0*lx ",
+ width, st->start_address,
+ width, st->current_address);
delta = (st->current_address - st->start_address) >> 10;
while (!(delta & 1023) && unit[1]) {
OpenPOWER on IntegriCloud