From: Arjan van de Ven Date: Fri, 25 Jul 2008 08:45:54 +0000 (-0700) Subject: kernel/irq/manage.c: replace a printk + WARN_ON() to a WARN() X-Git-Tag: v2.6.27-rc1~463 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7a2c477069fbd32f91598f05334003979b987a39;p=linux-2.6-omap-h63xx.git 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 Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) } } else { if (desc->wake_depth == 0) { - printk(KERN_WARNING "Unbalanced IRQ %d " - "wake disable\n", irq); - WARN_ON(1); + WARN(1, "Unbalanced IRQ %d wake disable\n", irq); } else if (--desc->wake_depth == 0) { ret = set_irq_wake_real(irq, on); if (ret)