From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755709AbZEOS4V (ORCPT ); Fri, 15 May 2009 14:56:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753968AbZEOS4D (ORCPT ); Fri, 15 May 2009 14:56:03 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:43464 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752047AbZEOS4B (ORCPT ); Fri, 15 May 2009 14:56:01 -0400 Date: Fri, 15 May 2009 13:56:02 -0500 From: "Serge E. Hallyn" To: Joe Perches Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , James Morris , David Rientjes , David Howells Subject: Re: [PATCH 11/11] mm: Convert #ifdef DEBUG printk(KERN_DEBUG to pr_debug( Message-ID: <20090515185602.GA28604@us.ibm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Joe Perches (joe@perches.com): > From: Joe Perches > > Signed-off-by: Joe Perches Seems reasonable - apart from my woes with dynamic_printk :) Can you also remove the commented-out '#define DEBUG' line on line 35 if you haven't already? Acked-by: Serge Hallyn thanks, -serge > --- > mm/oom_kill.c | 6 ++---- > 1 files changed, 2 insertions(+), 4 deletions(-) > > 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; > } > > -- > 1.6.3.1.9.g95405b.dirty