Commit 7a2c4770 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds

kernel/irq/manage.c: replace a printk + WARN_ON() to a WARN()

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: default avatarArjan van de Ven <arjan@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a8f18b90
...@@ -260,9 +260,7 @@ int set_irq_wake(unsigned int irq, unsigned int on) ...@@ -260,9 +260,7 @@ int set_irq_wake(unsigned int irq, unsigned int on)
} }
} else { } else {
if (desc->wake_depth == 0) { if (desc->wake_depth == 0) {
printk(KERN_WARNING "Unbalanced IRQ %d " WARN(1, "Unbalanced IRQ %d wake disable\n", irq);
"wake disable\n", irq);
WARN_ON(1);
} else if (--desc->wake_depth == 0) { } else if (--desc->wake_depth == 0) {
ret = set_irq_wake_real(irq, on); ret = set_irq_wake_real(irq, on);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment