From: Yinghai Lu Date: Tue, 6 Jan 2009 22:39:14 +0000 (-0800) Subject: mm: print out memmap number only if it is not zero X-Git-Tag: MMI-PSA29.97-13-9~30364 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5594c8c813d9e907ff55da7080d42653478b73e8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mm: print out memmap number only if it is not zero Don't print the size of the zone's memmap array if it does not have one. Impact: cleanup Signed-off-by: Yinghai Lu Cc: Mel Gorman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d8ac01474563..2f644c3e3da3 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3469,9 +3469,10 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat, PAGE_ALIGN(size * sizeof(struct page)) >> PAGE_SHIFT; if (realsize >= memmap_pages) { realsize -= memmap_pages; - printk(KERN_DEBUG - " %s zone: %lu pages used for memmap\n", - zone_names[j], memmap_pages); + if (memmap_pages) + printk(KERN_DEBUG + " %s zone: %lu pages used for memmap\n", + zone_names[j], memmap_pages); } else printk(KERN_WARNING " %s zone: %lu pages exceeds realsize %lu\n",