All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Zefan <lizefan@huawei.com>
To: Fabian Frederick <fabf@skynet.be>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	akpm <akpm@linux-foundation.org>, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH 2/2] kernel/cpuset.c: convert printk to pr_foo()
Date: Tue, 6 May 2014 09:22:42 +0800	[thread overview]
Message-ID: <53683962.50705@huawei.com> (raw)
In-Reply-To: <20140505194900.a0679fd326208e0b56e51f5e@skynet.be>

On 2014/5/6 1:49, Fabian Frederick wrote:
> Cc: Li Zefan <lizefan@huawei.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>

Acked-by: Li Zefan <lizefan@huawei.com>

> ---
>  kernel/cpuset.c | 11 ++++-------
>  1 file changed, 4 insertions(+), 7 deletions(-)
> 
> diff --git a/kernel/cpuset.c b/kernel/cpuset.c
> index 1d8c047..7c0e8da 100644
> --- a/kernel/cpuset.c
> +++ b/kernel/cpuset.c
> @@ -696,11 +696,8 @@ restart:
>  		if (nslot == ndoms) {
>  			static int warnings = 10;
>  			if (warnings) {
> -				printk(KERN_WARNING
> -				 "rebuild_sched_domains confused:"
> -				  " nslot %d, ndoms %d, csn %d, i %d,"
> -				  " apn %d\n",
> -				  nslot, ndoms, csn, i, apn);
> +				pr_warn("rebuild_sched_domains confused: nslot %d, ndoms %d, csn %d, i %d, apn %d\n",
> +					nslot, ndoms, csn, i, apn);
>  				warnings--;
>  			}
>  			continue;
> @@ -2018,7 +2015,7 @@ static void remove_tasks_in_empty_cpuset(struct cpuset *cs)
>  		parent = parent_cs(parent);
>  
>  	if (cgroup_transfer_tasks(parent->css.cgroup, cs->css.cgroup)) {
> -		printk(KERN_ERR "cpuset: failed to transfer tasks out of empty cpuset ");
> +		pr_err("cpuset: failed to transfer tasks out of empty cpuset ");
>  		pr_cont_cgroup_name(cs->css.cgroup);
>  		pr_cont("\n");
>  	}
> @@ -2555,7 +2552,7 @@ void cpuset_print_task_mems_allowed(struct task_struct *tsk)
>  	cgrp = task_cs(tsk)->css.cgroup;
>  	nodelist_scnprintf(cpuset_nodelist, CPUSET_NODELIST_LEN,
>  			   tsk->mems_allowed);
> -	printk(KERN_INFO "%s cpuset=", tsk->comm);
> +	pr_info("%s cpuset=", tsk->comm);
>  	pr_cont_cgroup_name(cgrp);
>  	pr_cont(" mems_allowed=%s\n", cpuset_nodelist);
>  
> 


  reply	other threads:[~2014-05-06  1:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-05 17:49 [PATCH 2/2] kernel/cpuset.c: convert printk to pr_foo() Fabian Frederick
2014-05-06  1:22 ` Li Zefan [this message]
2014-05-06 11:32 ` Tejun Heo

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=53683962.50705@huawei.com \
    --to=lizefan@huawei.com \
    --cc=akpm@linux-foundation.org \
    --cc=fabf@skynet.be \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.