diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2008-07-25 19:45:36 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-26 12:00:07 -0700 |
commit | b8c512f6190e313df69060bae4a161c5c044e272 (patch) | |
tree | 4b36b2ff66f5139141058d8d63f3dc219281bb5d /kernel/irq | |
parent | 51cc50685a4275c6a02653670af9f108a64e01cf (diff) | |
download | kernel_samsung_smdk4412-b8c512f6190e313df69060bae4a161c5c044e272.zip kernel_samsung_smdk4412-b8c512f6190e313df69060bae4a161c5c044e272.tar.gz kernel_samsung_smdk4412-b8c512f6190e313df69060bae4a161c5c044e272.tar.bz2 |
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>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/manage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index f8914b9..152abfd 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -177,8 +177,7 @@ static void __enable_irq(struct irq_desc *desc, unsigned int irq) { switch (desc->depth) { case 0: - printk(KERN_WARNING "Unbalanced enable for IRQ %d\n", irq); - WARN_ON(1); + WARN(1, KERN_WARNING "Unbalanced enable for IRQ %d\n", irq); break; case 1: { unsigned int status = desc->status & ~IRQ_DISABLED; |