aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2015-02-11 18:26:01 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-11 20:06:02 -0500
commit8d29e18a459dfc2adeafc1acb9c4185ee6713116 (patch)
treecbc547950eaf06d5ae4c05e1f68be61b7f1749eb /mm/page_alloc.c
parent0ca44b148ef2596882742dc03ef1c3adcd40f03b (diff)
mm: use correct format specifiers when printing address ranges
Especially on 32 bit kernels memory node ranges are printed with 32 bit wide addresses only. Use u64 types and %llx specifiers to print full width of addresses. Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 0081228d1caa..641d5a9a8617 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4994,8 +4994,8 @@ void __paginginit free_area_init_node(int nid, unsigned long *zones_size,
4994 pgdat->node_start_pfn = node_start_pfn; 4994 pgdat->node_start_pfn = node_start_pfn;
4995#ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP 4995#ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP
4996 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); 4996 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn);
4997 printk(KERN_INFO "Initmem setup node %d [mem %#010Lx-%#010Lx]\n", nid, 4997 pr_info("Initmem setup node %d [mem %#018Lx-%#018Lx]\n", nid,
4998 (u64) start_pfn << PAGE_SHIFT, (u64) (end_pfn << PAGE_SHIFT) - 1); 4998 (u64)start_pfn << PAGE_SHIFT, ((u64)end_pfn << PAGE_SHIFT) - 1);
4999#endif 4999#endif
5000 calculate_node_totalpages(pgdat, start_pfn, end_pfn, 5000 calculate_node_totalpages(pgdat, start_pfn, end_pfn,
5001 zones_size, zholes_size); 5001 zones_size, zholes_size);
@@ -5367,9 +5367,10 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn)
5367 arch_zone_highest_possible_pfn[i]) 5367 arch_zone_highest_possible_pfn[i])
5368 pr_cont("empty\n"); 5368 pr_cont("empty\n");
5369 else 5369 else
5370 pr_cont("[mem %0#10lx-%0#10lx]\n", 5370 pr_cont("[mem %#018Lx-%#018Lx]\n",
5371 arch_zone_lowest_possible_pfn[i] << PAGE_SHIFT, 5371 (u64)arch_zone_lowest_possible_pfn[i]
5372 (arch_zone_highest_possible_pfn[i] 5372 << PAGE_SHIFT,
5373 ((u64)arch_zone_highest_possible_pfn[i]
5373 << PAGE_SHIFT) - 1); 5374 << PAGE_SHIFT) - 1);
5374 } 5375 }
5375 5376
@@ -5377,15 +5378,16 @@ void __init free_area_init_nodes(unsigned long *max_zone_pfn)
5377 pr_info("Movable zone start for each node\n"); 5378 pr_info("Movable zone start for each node\n");
5378 for (i = 0; i < MAX_NUMNODES; i++) { 5379 for (i = 0; i < MAX_NUMNODES; i++) {
5379 if (zone_movable_pfn[i]) 5380 if (zone_movable_pfn[i])
5380 pr_info(" Node %d: %#010lx\n", i, 5381 pr_info(" Node %d: %#018Lx\n", i,
5381 zone_movable_pfn[i] << PAGE_SHIFT); 5382 (u64)zone_movable_pfn[i] << PAGE_SHIFT);
5382 } 5383 }
5383 5384
5384 /* Print out the early node map */ 5385 /* Print out the early node map */
5385 pr_info("Early memory node ranges\n"); 5386 pr_info("Early memory node ranges\n");
5386 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid) 5387 for_each_mem_pfn_range(i, MAX_NUMNODES, &start_pfn, &end_pfn, &nid)
5387 pr_info(" node %3d: [mem %#010lx-%#010lx]\n", nid, 5388 pr_info(" node %3d: [mem %#018Lx-%#018Lx]\n", nid,
5388 start_pfn << PAGE_SHIFT, (end_pfn << PAGE_SHIFT) - 1); 5389 (u64)start_pfn << PAGE_SHIFT,
5390 ((u64)end_pfn << PAGE_SHIFT) - 1);
5389 5391
5390 /* Initialise every node */ 5392 /* Initialise every node */
5391 mminit_verify_pageflags_layout(); 5393 mminit_verify_pageflags_layout();