提交 7a2c4770 编写于 作者: A Arjan van de Ven 提交者: 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: NArjan van de Ven <arjan@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册