Commit f047f4f3792344901e1ea18a180515d7d5349e02

Authored by Amerigo Wang
Committed by Linus Torvalds
1 parent 478352e789

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>

Showing 1 changed file with 7 additions and 7 deletions Side-by-side Diff

... ... @@ -15,7 +15,7 @@
15 15 unsigned long total = 0, reserved = 0, shared = 0,
16 16 nonshared = 0, highmem = 0;
17 17  
18   - printk(KERN_INFO "Mem-Info:\n");
  18 + printk("Mem-Info:\n");
19 19 show_free_areas();
20 20  
21 21 for_each_online_pgdat(pgdat) {
22 22  
23 23  
24 24  
... ... @@ -49,15 +49,15 @@
49 49 pgdat_resize_unlock(pgdat, &flags);
50 50 }
51 51  
52   - printk(KERN_INFO "%lu pages RAM\n", total);
  52 + printk("%lu pages RAM\n", total);
53 53 #ifdef CONFIG_HIGHMEM
54   - printk(KERN_INFO "%lu pages HighMem\n", highmem);
  54 + printk("%lu pages HighMem\n", highmem);
55 55 #endif
56   - printk(KERN_INFO "%lu pages reserved\n", reserved);
57   - printk(KERN_INFO "%lu pages shared\n", shared);
58   - printk(KERN_INFO "%lu pages non-shared\n", nonshared);
  56 + printk("%lu pages reserved\n", reserved);
  57 + printk("%lu pages shared\n", shared);
  58 + printk("%lu pages non-shared\n", nonshared);
59 59 #ifdef CONFIG_QUICKLIST
60   - printk(KERN_INFO "%lu pages in pagetable cache\n",
  60 + printk("%lu pages in pagetable cache\n",
61 61 quicklist_total_size());
62 62 #endif
63 63 }