]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
oom: print points as unsigned long
authorDavid Rientjes <rientjes@google.com>
Tue, 31 Jul 2007 07:37:32 +0000 (00:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:36 +0000 (15:39 -0700)
In badness(), the automatic variable 'points' is unsigned long.  Print it
as such.

Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c

index 10367654ae774fba2072698e1fac470174d8698e..f9b82ad5047f7c7a175afc5c197108fecca48e84 100644 (file)
@@ -157,7 +157,7 @@ unsigned long badness(struct task_struct *p, unsigned long uptime)
        }
 
 #ifdef DEBUG
-       printk(KERN_DEBUG "OOMkill: task %d (%s) got %d points\n",
+       printk(KERN_DEBUG "OOMkill: task %d (%s) got %lu points\n",
        p->pid, p->comm, points);
 #endif
        return points;