diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2008-07-25 04:45:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-25 13:53:29 -0400 |
commit | 7a2c477069fbd32f91598f05334003979b987a39 (patch) | |
tree | fe4ac84819050159a45752ad4c03b2abc971ad06 | |
parent | a8f18b909c0a3f22630846207035c8b84bb252b8 (diff) |
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: 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>
-rw-r--r-- | kernel/irq/manage.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 5bc6e5ecc49..f8914b92b66 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -260,9 +260,7 @@ int set_irq_wake(unsigned int irq, unsigned int on) | |||
260 | } | 260 | } |
261 | } else { | 261 | } else { |
262 | if (desc->wake_depth == 0) { | 262 | if (desc->wake_depth == 0) { |
263 | printk(KERN_WARNING "Unbalanced IRQ %d " | 263 | WARN(1, "Unbalanced IRQ %d wake disable\n", irq); |
264 | "wake disable\n", irq); | ||
265 | WARN_ON(1); | ||
266 | } else if (--desc->wake_depth == 0) { | 264 | } else if (--desc->wake_depth == 0) { |
267 | ret = set_irq_wake_real(irq, on); | 265 | ret = set_irq_wake_real(irq, on); |
268 | if (ret) | 266 | if (ret) |