Skip to content

Commit

Permalink
add log for hotplug appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
hejingxian123 committed Dec 17, 2020
1 parent f02e864 commit c0b700e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classify.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ static void build_one_dev_entry(const char *dirname, GList *tmp_irqs, int build_
hint.type = IRQ_TYPE_MSIX;
add_new_irq(devpath, &hint, tmp_irqs);
if (build_irq >= 0) {
log(TO_CONSOLE, LOG_INFO, "Hotplug irq: %d success\n.", build_irq);
log(TO_CONSOLE, LOG_INFO, "Hotplug dev irq: %d finished\n.", irqnum);
break;
}
}
Expand All @@ -675,6 +675,8 @@ static void build_one_dev_entry(const char *dirname, GList *tmp_irqs, int build_
hint.irq = irqnum;
hint.type = IRQ_TYPE_LEGACY;
add_new_irq(devpath, &hint, tmp_irqs);
if (build_irq >= 0)
log(TO_CONSOLE, LOG_INFO, "Hotplug dev irq: %d finished\n.", irqnum);
}
}

Expand Down

0 comments on commit c0b700e

Please sign in to comment.