diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2019-11-05 15:08:54 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-01-09 15:42:54 +0100 |
commit | 025af39b87dc4dc78de4e861ca8b88a1d5ba89f6 (patch) | |
tree | cd28a031e218b729d672449117b9de83b1054ab2 /kernel/irq/manage.c | |
parent | Linux 5.5-rc5 (diff) | |
download | linux-025af39b87dc4dc78de4e861ca8b88a1d5ba89f6.tar.xz linux-025af39b87dc4dc78de4e861ca8b88a1d5ba89f6.zip |
genirq: Show irq name in non-oneshot error message
Requesting a threaded IRQ with handler=NULL and !ONESHOT fails, but the
error message does not include the IRQ line name, which makes it harder to
find the offending driver.
Print the IRQ line name to clarify where the error comes from. Use the same
format as the other pr_err() above in the same function.
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20191105140854.27893-1-luca@lucaceresoli.net
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 1753486b440c..b6c53ab053d2 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -1500,8 +1500,8 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new) * has. The type flags are unreliable as the * underlying chip implementation can override them. */ - pr_err("Threaded irq requested with handler=NULL and !ONESHOT for irq %d\n", - irq); + pr_err("Threaded irq requested with handler=NULL and !ONESHOT for %s (irq %d)\n", + new->name, irq); ret = -EINVAL; goto out_unlock; } |