diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-01-06 17:39:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-06 18:59:00 -0500 |
commit | 5594c8c813d9e907ff55da7080d42653478b73e8 (patch) | |
tree | c10347380fa5e1358d9354ee7e8f3f24b0d18535 /mm/page_alloc.c | |
parent | c04fc586c1a480ba198f03ae7b6cbd7b57380b91 (diff) |
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 <yinghai@kernel.org>
Cc: Mel Gorman <mel@csn.ul.ie>
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.c | 7 |
1 files changed, 4 insertions, 3 deletions
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, | |||
3469 | PAGE_ALIGN(size * sizeof(struct page)) >> PAGE_SHIFT; | 3469 | PAGE_ALIGN(size * sizeof(struct page)) >> PAGE_SHIFT; |
3470 | if (realsize >= memmap_pages) { | 3470 | if (realsize >= memmap_pages) { |
3471 | realsize -= memmap_pages; | 3471 | realsize -= memmap_pages; |
3472 | printk(KERN_DEBUG | 3472 | if (memmap_pages) |
3473 | " %s zone: %lu pages used for memmap\n", | 3473 | printk(KERN_DEBUG |
3474 | zone_names[j], memmap_pages); | 3474 | " %s zone: %lu pages used for memmap\n", |
3475 | zone_names[j], memmap_pages); | ||
3475 | } else | 3476 | } else |
3476 | printk(KERN_WARNING | 3477 | printk(KERN_WARNING |
3477 | " %s zone: %lu pages exceeds realsize %lu\n", | 3478 | " %s zone: %lu pages exceeds realsize %lu\n", |