Use WARN() in kernel/irq/manage.c
Replace a printk+WARN_ON() by a WARN(); this increases the chance of the string making it into the bugreport (ie: it goes inside the ---[ cut here ]--- section) Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
51cc50685a
commit
b8c512f619
@ -177,8 +177,7 @@ static void __enable_irq(struct irq_desc *desc, unsigned int irq)
|
|||||||
{
|
{
|
||||||
switch (desc->depth) {
|
switch (desc->depth) {
|
||||||
case 0:
|
case 0:
|
||||||
printk(KERN_WARNING "Unbalanced enable for IRQ %d\n", irq);
|
WARN(1, KERN_WARNING "Unbalanced enable for IRQ %d\n", irq);
|
||||||
WARN_ON(1);
|
|
||||||
break;
|
break;
|
||||||
case 1: {
|
case 1: {
|
||||||
unsigned int status = desc->status & ~IRQ_DISABLED;
|
unsigned int status = desc->status & ~IRQ_DISABLED;
|
||||||
|
Loading…
Reference in New Issue
Block a user