summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/handle.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 790c5fa..fd1ef16 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;
}
OpenPOWER on IntegriCloud