irq: use WARN() instead of WARN_ON().
authorMike Travis <travis@sgi.com>
Sun, 11 Jan 2009 06:24:06 +0000 (22:24 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 11 Jan 2009 18:13:32 +0000 (19:13 +0100)
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>
kernel/irq/handle.c

index 790c5fa..fd1ef16 100644 (file)
@@ -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;
        }