Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1330090

Re: [PATCH] x86/kernel: use pr_<level>() and dev_<level>

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH] x86/kernel: use pr_<level>() and dev_<level>
Date 2016-02-09 12:00 +0100
Message-ID <r0ebx-2Tw-47@gated-at.bofh.it> (permalink)
References <qYLlh-6Xi-35@gated-at.bofh.it> <r0dfs-2gR-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 9 Feb 2016, Ingo Molnar wrote:
> 
> * Chen Yucong <slaoub@gmail.com> wrote:
> 
> > arch/x86/kernel/* use a mixture of printk(KERN_<level> ) and pr_<level>().
> > This patch converts the bulk of printk(KERN_<level> ) to pr_<level>() and
> > uses dev_dbg() instead of the dev_printk(KERN_DEBUG,). All pr_warning()
> > calls have been replaced with pr_warn().
> > 
> > Not sure what to do about the printk(KERN_DEFAULT) and printk() without a
> > log level.
> > 
> > Signed-off-by: Chen Yucong <slaoub@gmail.com>
> 
> When converting please also join broken up format strings, such as:
> 
> -               printk(KERN_WARNING PREFIX
> -                      "HPET id: %#x base: 0xfed0000000000000 fixed up "
> -                      "to 0xfed00000.\n", hpet_tbl->id);
> +               pr_warn(PREFIX "HPET id: %#x base: 0xfed0000000000000 fixed up "
> +                       "to 0xfed00000.\n", hpet_tbl->id);
> 
> ignore checkpatch: we don't line-break user visible strings.

And please get rid of PREFIX. define pr_fmt instead.

Thanks,

	tglx

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] x86/kernel: use pr_<level>() and dev_<level> Ingo Molnar <mingo@kernel.org> - 2016-02-09 11:00 +0100
  Re: [PATCH] x86/kernel: use pr_<level>() and dev_<level> Thomas Gleixner <tglx@linutronix.de> - 2016-02-09 12:00 +0100
  Re: [PATCH] x86/kernel: use pr_<level>() and dev_<level> Joe Perches <joe@perches.com> - 2016-02-10 01:00 +0100

csiph-web