Re: [PATCH] arch/x86/kernel/microcode*: Use pr_fmt and removeduplicated KERN_ERR prefix

From: Ingo Molnar
Date: Wed Dec 09 2009 - 02:27:32 EST



* Joe Perches <joe@xxxxxxxxxxx> wrote:

> On Wed, 2009-12-09 at 07:05 +0100, Ingo Molnar wrote:
> > > > - printk(KERN_ERR "microcode: CPU%d: loading of chipset "
> > > > + pr_err(KERN_ERR "microcode: CPU%d: loading of chipset "
> > > Duplicates KERN_ERR
> > Indeed - please send a delta fix as this has been merged already.
>
> Use #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> Remove "microcode: " prefix from each pr_<level>
> Fix duplicated KERN_ERR prefix
> Coalesce pr_<level> format strings
> Add a space after an exclamation point
> No other change in output
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> ---
> arch/x86/kernel/microcode_amd.c | 40 +++++++++++++++----------------
> arch/x86/kernel/microcode_core.c | 26 +++++++++++---------
> arch/x86/kernel/microcode_intel.c | 47 +++++++++++++++---------------------
> 3 files changed, 53 insertions(+), 60 deletions(-)

very nice. I've applied it, thanks Joe!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/