aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-10-18 23:27:06 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 11:52:32 -0400
commitd903ef9f38813e7eb268744a7e579e92f411c83a (patch)
tree7d9337e6c27fcbc78569757d6dd6399a318174ca /mm
parent2a4b3ded5c76fbe373d6415b1b3ad4841f15c9bd (diff)
mm: print out meminit for memmap
Improve debuggability of memory setup problems. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index cfbadad75d1d..8f155e9e43db 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3457,8 +3457,8 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
3457 PAGE_ALIGN(size * sizeof(struct page)) >> PAGE_SHIFT; 3457 PAGE_ALIGN(size * sizeof(struct page)) >> PAGE_SHIFT;
3458 if (realsize >= memmap_pages) { 3458 if (realsize >= memmap_pages) {
3459 realsize -= memmap_pages; 3459 realsize -= memmap_pages;
3460 mminit_dprintk(MMINIT_TRACE, "memmap_init", 3460 printk(KERN_DEBUG
3461 "%s zone: %lu pages used for memmap\n", 3461 " %s zone: %lu pages used for memmap\n",
3462 zone_names[j], memmap_pages); 3462 zone_names[j], memmap_pages);
3463 } else 3463 } else
3464 printk(KERN_WARNING 3464 printk(KERN_WARNING
@@ -3468,8 +3468,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat,
3468 /* Account for reserved pages */ 3468 /* Account for reserved pages */
3469 if (j == 0 && realsize > dma_reserve) { 3469 if (j == 0 && realsize > dma_reserve) {
3470 realsize -= dma_reserve; 3470 realsize -= dma_reserve;
3471 mminit_dprintk(MMINIT_TRACE, "memmap_init", 3471 printk(KERN_DEBUG " %s zone: %lu pages reserved\n",
3472 "%s zone: %lu pages reserved\n",
3473 zone_names[0], dma_reserve); 3472 zone_names[0], dma_reserve);
3474 } 3473 }
3475 3474