Skip to content

Commit

Permalink
x86 boot: show pfn addresses in hex not decimal in some kernel info p…
Browse files Browse the repository at this point in the history
…rintks

Page frame numbers (the portion of physical addresses above the low
order page offsets) are displayed in several kernel debug and info
prints in decimal, not hex.  Decimal addresse are unreadable.  Use hex.

Signed-off-by: Paul Jackson <[email protected]>
Cc: "Yinghai Lu" <[email protected]>
Cc: "Jack Steiner" <[email protected]>
Cc: "Mike Travis" <[email protected]>
Cc: "Huang
Cc: Ying" <[email protected]>
Cc: "Andi Kleen" <[email protected]>
Cc: "Andrew Morton" <[email protected]>
Cc: Paul Jackson <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Paul Jackson authored and Ingo Molnar committed Jul 8, 2008
1 parent c4ba132 commit e2fc252
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ unsigned long __init e820_end_of_ram(void)
if (last_pfn > end_user_pfn)
last_pfn = end_user_pfn;

printk(KERN_INFO "last_pfn = %lu max_arch_pfn = %lu\n",
printk(KERN_INFO "last_pfn = 0x%lx max_arch_pfn = 0x%lx\n",
last_pfn, max_arch_pfn);
return last_pfn;
}
Expand Down
6 changes: 3 additions & 3 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3520,7 +3520,7 @@ void __init add_active_range(unsigned int nid, unsigned long start_pfn,
{
int i;

printk(KERN_DEBUG "Entering add_active_range(%d, %lu, %lu) "
printk(KERN_DEBUG "Entering add_active_range(%d, 0x%lx, 0x%lx) "
"%d entries of %d used\n",
nid, start_pfn, end_pfn,
nr_nodemap_entries, MAX_ACTIVE_REGIONS);
Expand Down Expand Up @@ -3936,7 +3936,7 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn)
for (i = 0; i < MAX_NR_ZONES; i++) {
if (i == ZONE_MOVABLE)
continue;
printk(" %-8s %8lu -> %8lu\n",
printk(" %-8s 0x%8lx -> 0x%8lx\n",
zone_names[i],
arch_zone_lowest_possible_pfn[i],
arch_zone_highest_possible_pfn[i]);
Expand All @@ -3952,7 +3952,7 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn)
/* Print out the early_node_map[] */
printk("early_node_map[%d] active PFN ranges\n", nr_nodemap_entries);
for (i = 0; i < nr_nodemap_entries; i++)
printk(" %3d: %8lu -> %8lu\n", early_node_map[i].nid,
printk(" %3d: 0x%8lx -> 0x%8lx\n", early_node_map[i].nid,
early_node_map[i].start_pfn,
early_node_map[i].end_pfn);

Expand Down

0 comments on commit e2fc252

Please sign in to comment.