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>
This commit is contained in:
Родитель
66aa230e43
Коммит
6424fb3866
|
@ -161,13 +161,14 @@ static void note_page(struct seq_file *m, struct pg_state *st,
|
||||||
st->current_address >= st->marker[1].start_address) {
|
st->current_address >= st->marker[1].start_address) {
|
||||||
const char *unit = units;
|
const char *unit = units;
|
||||||
unsigned long delta;
|
unsigned long delta;
|
||||||
|
int width = sizeof(unsigned long) * 2;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now print the actual finished series
|
* Now print the actual finished series
|
||||||
*/
|
*/
|
||||||
seq_printf(m, "0x%p-0x%p ",
|
seq_printf(m, "0x%0*lx-0x%0*lx ",
|
||||||
(void *)st->start_address,
|
width, st->start_address,
|
||||||
(void *)st->current_address);
|
width, st->current_address);
|
||||||
|
|
||||||
delta = (st->current_address - st->start_address) >> 10;
|
delta = (st->current_address - st->start_address) >> 10;
|
||||||
while (!(delta & 1023) && unit[1]) {
|
while (!(delta & 1023) && unit[1]) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче