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: firefly_0821_release~19058 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7a2c477069fbd32f91598f05334003979b987a39;p=firefly-linux-kernel-4.4.55.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 5bc6e5ecc493..f8914b92b664 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)