Re: [tip:x86/apic] x86, irq: Replace printk(KERN_LVL) with pr_lvl() utilities

From: Joe Perches
Date: Wed Nov 05 2014 - 11:48:10 EST


On Wed, 2014-11-05 at 08:37 -0800, tip-bot for Jiang Liu wrote:
> x86, irq: Replace printk(KERN_LVL) with pr_lvl() utilities
>
> Replace printk(KENR_LVL) with pr_lvl() to keep checkpatch script silent.

This is actually a small behavioral change.

pr_debug is not quite the same as printk(KERN_DEBUG
pr_debug is not performed unless dynamic_debug is
enabled or a #define DEBUG is set.

> diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c
[]
> @@ -504,28 +504,27 @@ static void __init print_local_APIC(void *dummy)
> unsigned int i, v, ver, maxlvt;
> u64 icr;
>
> - printk(KERN_DEBUG "printing local APIC contents on CPU#%d/%d:\n",
> - smp_processor_id(), hard_smp_processor_id());
> + pr_debug("printing local APIC contents on CPU#%d/%d:\n",
> + smp_processor_id(), hard_smp_processor_id());



--
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/