From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753809AbbE1JrQ (ORCPT ); Thu, 28 May 2015 05:47:16 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:14429 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415AbbE1JrF (ORCPT ); Thu, 28 May 2015 05:47:05 -0400 From: Wang Long To: , , CC: , , , , , , , , Subject: [PATCH] OOM: print points as unsigned int Date: Thu, 28 May 2015 09:46:44 +0000 Message-ID: <1432806404-223203-1-git-send-email-long.wanglong@huawei.com> X-Mailer: git-send-email 1.8.3.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.197.200] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In oom_kill_process(), the variable 'points' is unsigned int. Print it as such. Signed-off-by: Wang Long --- mm/oom_kill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 2b665da..056002c 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -528,7 +528,7 @@ void oom_kill_process(struct task_struct *p, gfp_t gfp_mask, int order, dump_header(p, gfp_mask, order, memcg, nodemask); task_lock(p); - pr_err("%s: Kill process %d (%s) score %d or sacrifice child\n", + pr_err("%s: Kill process %d (%s) score %u or sacrifice child\n", message, task_pid_nr(p), p->comm, points); task_unlock(p); -- 1.8.3.4