Skip to content

Commit b8c512f

Browse files
fenrus75torvalds
authored andcommitted
Use WARN() in kernel/irq/manage.c
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>
1 parent 51cc506 commit b8c512f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎kernel/irq/manage.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ static void __enable_irq(struct irq_desc *desc, unsigned int irq)
177177
{
178178
switch (desc->depth) {
179179
case 0:
180-
printk(KERN_WARNING "Unbalanced enable for IRQ %d\n", irq);
181-
WARN_ON(1);
180+
WARN(1, KERN_WARNING "Unbalanced enable for IRQ %d\n", irq);
182181
break;
183182
case 1: {
184183
unsigned int status = desc->status & ~IRQ_DISABLED;

0 commit comments

Comments
 (0)