[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0905151240080.925@chino.kir.corp.google.com>
Date: Fri, 15 May 2009 12:40:30 -0700 (PDT)
From: David Rientjes <rientjes@...gle.com>
To: Joe Perches <joe@...ches.com>
cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Andrew Morton <akpm@...ux-foundation.org>,
James Morris <jmorris@...ei.org>,
Serge Hallyn <serue@...ibm.com>,
David Howells <dhowells@...hat.com>
Subject: Re: [PATCH 11/11] mm: Convert #ifdef DEBUG printk(KERN_DEBUG to
pr_debug(
On Fri, 15 May 2009, Joe Perches wrote:
> diff --git a/mm/oom_kill.c b/mm/oom_kill.c
> index 92bcf1d..8f7fb51 100644
> --- a/mm/oom_kill.c
> +++ b/mm/oom_kill.c
> @@ -159,10 +159,8 @@ unsigned long badness(struct task_struct *p, unsigned long uptime)
> points >>= -(p->oomkilladj);
> }
>
> -#ifdef DEBUG
> - printk(KERN_DEBUG "OOMkill: task %d (%s) got %lu points\n",
> - p->pid, p->comm, points);
> -#endif
> + pr_debug("OOMkill: task %d (%s) got %lu points\n",
> + p->pid, p->comm, points);
> return points;
> }
>
You can just remove the entire printk() since this information is now
exported via /proc/pid/oom_score.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists