diff options
author | Mike Travis <travis@sgi.com> | 2009-01-10 22:24:06 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-11 19:13:32 +0100 |
commit | e2f4d06545ec1f29b0e838ee34cbf3500ea5b9a4 (patch) | |
tree | 867881517120191e988dc9e711aa3c92fbc8757b /kernel | |
parent | 9594949b060efe86ecaa1a66839232a3b9800bc9 (diff) | |
download | blackbird-op-linux-e2f4d06545ec1f29b0e838ee34cbf3500ea5b9a4.tar.gz blackbird-op-linux-e2f4d06545ec1f29b0e838ee34cbf3500ea5b9a4.zip |
irq: use WARN() instead of WARN_ON().
Impact: cleanup WARN msg.
Ingo requested:
> While at it, could you please also convert this to a WARN() construct
> instead? (in a separate commit)
... and it shall be done. ;-)
Signed-off-by: Mike Travis <travis@sgi.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/handle.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 790c5fa7ea39..fd1ef16252f4 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c @@ -163,9 +163,8 @@ struct irq_desc *irq_to_desc_alloc_cpu(unsigned int irq, int cpu) int node; if (irq >= nr_irqs) { - printk(KERN_WARNING "irq >= nr_irqs in irq_to_desc_alloc: %d %d\n", - irq, nr_irqs); - WARN_ON(1); + WARN(1, "irq (%d) >= nr_irqs (%d) in irq_to_desc_alloc\n", + irq, nr_irqs); return NULL; } |