dect
/
linux-2.6
Archived
13
0
Fork 0

mm: use the same log level for show_mem()

Use the same log level for printk's in show_mem(), so that those messages
can be shown completely when using log level 6.

Signed-off-by: WANG Cong <amwang@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Amerigo Wang 2010-03-05 13:42:24 -08:00 committed by Linus Torvalds
parent 478352e789
commit f047f4f379
1 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ void show_mem(void)
unsigned long total = 0, reserved = 0, shared = 0, unsigned long total = 0, reserved = 0, shared = 0,
nonshared = 0, highmem = 0; nonshared = 0, highmem = 0;
printk(KERN_INFO "Mem-Info:\n"); printk("Mem-Info:\n");
show_free_areas(); show_free_areas();
for_each_online_pgdat(pgdat) { for_each_online_pgdat(pgdat) {
@ -49,15 +49,15 @@ void show_mem(void)
pgdat_resize_unlock(pgdat, &flags); pgdat_resize_unlock(pgdat, &flags);
} }
printk(KERN_INFO "%lu pages RAM\n", total); printk("%lu pages RAM\n", total);
#ifdef CONFIG_HIGHMEM #ifdef CONFIG_HIGHMEM
printk(KERN_INFO "%lu pages HighMem\n", highmem); printk("%lu pages HighMem\n", highmem);
#endif #endif
printk(KERN_INFO "%lu pages reserved\n", reserved); printk("%lu pages reserved\n", reserved);
printk(KERN_INFO "%lu pages shared\n", shared); printk("%lu pages shared\n", shared);
printk(KERN_INFO "%lu pages non-shared\n", nonshared); printk("%lu pages non-shared\n", nonshared);
#ifdef CONFIG_QUICKLIST #ifdef CONFIG_QUICKLIST
printk(KERN_INFO "%lu pages in pagetable cache\n", printk("%lu pages in pagetable cache\n",
quicklist_total_size()); quicklist_total_size());
#endif #endif
} }