Skip to content

Commit

Permalink
genirq/msi: Fix broken debug output
Browse files Browse the repository at this point in the history
virq is not required to be the same for all msi descs. Use the base irq number
from the desc in the debug printk.

Reported-by: Ingo Molnar <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
KAGA-KOKO committed Jul 4, 2016
1 parent 8658be1 commit 4364e1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/irq/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ int msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev,
ops->msi_finish(&arg, 0);

for_each_msi_entry(desc, dev) {
virq = desc->irq;
if (desc->nvec_used == 1)
dev_dbg(dev, "irq %d for MSI\n", virq);
else
Expand Down

0 comments on commit 4364e1a

Please sign in to comment.