aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2013-02-22 19:32:06 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-23 20:50:09 -0500
commitd045197ff98a58123f39d9a9e25a5a38576fd34d (patch)
treefe2ff734332814efcb9e0f03bee915a51ba55303 /mm/memcontrol.c
parent58cf188ed649b6570dfdc9c62156cdf396c2e395 (diff)
mm/memcontrol.c: convert printk(KERN_FOO) to pr_foo()
Acked-by: Sha Zhengju <handai.szj@taobao.com> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r--mm/memcontrol.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 07bf3ec13a07..c878b1c69510 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1574,7 +1574,7 @@ void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, struct task_struct *p)
1574 } 1574 }
1575 rcu_read_unlock(); 1575 rcu_read_unlock();
1576 1576
1577 printk(KERN_INFO "Task in %s killed", memcg_name); 1577 pr_info("Task in %s killed", memcg_name);
1578 1578
1579 rcu_read_lock(); 1579 rcu_read_lock();
1580 ret = cgroup_path(mem_cgrp, memcg_name, PATH_MAX); 1580 ret = cgroup_path(mem_cgrp, memcg_name, PATH_MAX);
@@ -1587,19 +1587,18 @@ void mem_cgroup_print_oom_info(struct mem_cgroup *memcg, struct task_struct *p)
1587 /* 1587 /*
1588 * Continues from above, so we don't need an KERN_ level 1588 * Continues from above, so we don't need an KERN_ level
1589 */ 1589 */
1590 printk(KERN_CONT " as a result of limit of %s\n", memcg_name); 1590 pr_cont(" as a result of limit of %s\n", memcg_name);
1591done: 1591done:
1592 1592
1593 printk(KERN_INFO "memory: usage %llukB, limit %llukB, failcnt %llu\n", 1593 pr_info("memory: usage %llukB, limit %llukB, failcnt %llu\n",
1594 res_counter_read_u64(&memcg->res, RES_USAGE) >> 10, 1594 res_counter_read_u64(&memcg->res, RES_USAGE) >> 10,
1595 res_counter_read_u64(&memcg->res, RES_LIMIT) >> 10, 1595 res_counter_read_u64(&memcg->res, RES_LIMIT) >> 10,
1596 res_counter_read_u64(&memcg->res, RES_FAILCNT)); 1596 res_counter_read_u64(&memcg->res, RES_FAILCNT));
1597 printk(KERN_INFO "memory+swap: usage %llukB, limit %llukB, " 1597 pr_info("memory+swap: usage %llukB, limit %llukB, failcnt %llu\n",
1598 "failcnt %llu\n",
1599 res_counter_read_u64(&memcg->memsw, RES_USAGE) >> 10, 1598 res_counter_read_u64(&memcg->memsw, RES_USAGE) >> 10,
1600 res_counter_read_u64(&memcg->memsw, RES_LIMIT) >> 10, 1599 res_counter_read_u64(&memcg->memsw, RES_LIMIT) >> 10,
1601 res_counter_read_u64(&memcg->memsw, RES_FAILCNT)); 1600 res_counter_read_u64(&memcg->memsw, RES_FAILCNT));
1602 printk(KERN_INFO "kmem: usage %llukB, limit %llukB, failcnt %llu\n", 1601 pr_info("kmem: usage %llukB, limit %llukB, failcnt %llu\n",
1603 res_counter_read_u64(&memcg->kmem, RES_USAGE) >> 10, 1602 res_counter_read_u64(&memcg->kmem, RES_USAGE) >> 10,
1604 res_counter_read_u64(&memcg->kmem, RES_LIMIT) >> 10, 1603 res_counter_read_u64(&memcg->kmem, RES_LIMIT) >> 10,
1605 res_counter_read_u64(&memcg->kmem, RES_FAILCNT)); 1604 res_counter_read_u64(&memcg->kmem, RES_FAILCNT));
@@ -4426,8 +4425,8 @@ void mem_cgroup_print_bad_page(struct page *page)
4426 4425
4427 pc = lookup_page_cgroup_used(page); 4426 pc = lookup_page_cgroup_used(page);
4428 if (pc) { 4427 if (pc) {
4429 printk(KERN_ALERT "pc:%p pc->flags:%lx pc->mem_cgroup:%p\n", 4428 pr_alert("pc:%p pc->flags:%lx pc->mem_cgroup:%p\n",
4430 pc, pc->flags, pc->mem_cgroup); 4429 pc, pc->flags, pc->mem_cgroup);
4431 } 4430 }
4432} 4431}
4433#endif 4432#endif