From: Wang Long <long.wanglong@huawei.com>
To: akpm@linux-foundation.org, mhocko@suse.cz, rientjes@google.com
Cc: vdavydov@parallels.com, hannes@cmpxchg.org, oleg@redhat.com,
kirill.shutemov@linux.intel.com, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, wanglong@laoqinren.net,
long.wanglong@huawei.com, peifeiyue@huawei.com
Subject: [PATCH] OOM: print points as unsigned int
Date: Thu, 28 May 2015 09:46:44 +0000 [thread overview]
Message-ID: <1432806404-223203-1-git-send-email-long.wanglong@huawei.com> (raw)
In oom_kill_process(), the variable 'points' is unsigned int.
Print it as such.
Signed-off-by: Wang Long <long.wanglong@huawei.com>
---
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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2015-05-28 9:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-28 9:46 Wang Long [this message]
2015-05-28 13:03 ` [PATCH] OOM: print points as unsigned int Michal Hocko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1432806404-223203-1-git-send-email-long.wanglong@huawei.com \
--to=long.wanglong@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.cz \
--cc=oleg@redhat.com \
--cc=peifeiyue@huawei.com \
--cc=rientjes@google.com \
--cc=vdavydov@parallels.com \
--cc=wanglong@laoqinren.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).