lkml.org 
[lkml]   [2009]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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.


    \
     
     \ /
      Last update: 2009-05-15 21:43    [W:0.020 / U:67.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site