From becf6b3db84c2f23f6cbcc3ee2a315eb2e49ef43 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 18 Dec 2009 16:14:31 +0000 Subject: [PATCH] - Add missing newlines to some error messages. - Add interrupt descriptions when using mulitple MSI-X interrupts. Reviewed by: jfv --- sys/dev/e1000/if_igb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/dev/e1000/if_igb.c b/sys/dev/e1000/if_igb.c index b43baaca2993..844d330c529a 100644 --- a/sys/dev/e1000/if_igb.c +++ b/sys/dev/e1000/if_igb.c @@ -2121,9 +2121,10 @@ igb_allocate_msix(struct adapter *adapter) igb_msix_tx, txr, &txr->tag); if (error) { txr->res = NULL; - device_printf(dev, "Failed to register TX handler"); + device_printf(dev, "Failed to register TX handler\n"); return (error); } + bus_describe_intr(dev, txr->res, txr->tag, "tx %d", i); txr->msix = vector; if (adapter->hw.mac.type == e1000_82575) txr->eims = E1000_EICR_TX_QUEUE0 << i; @@ -2159,9 +2160,10 @@ igb_allocate_msix(struct adapter *adapter) igb_msix_rx, rxr, &rxr->tag); if (error) { rxr->res = NULL; - device_printf(dev, "Failed to register RX handler"); + device_printf(dev, "Failed to register RX handler\n"); return (error); } + bus_describe_intr(dev, rxr->res, rxr->tag, "rx %d", i); rxr->msix = vector; if (adapter->hw.mac.type == e1000_82575) rxr->eims = E1000_EICR_RX_QUEUE0 << i; @@ -2200,9 +2202,10 @@ igb_allocate_msix(struct adapter *adapter) if ((error = bus_setup_intr(dev, adapter->res, INTR_TYPE_NET | INTR_MPSAFE, NULL, igb_msix_link, adapter, &adapter->tag)) != 0) { - device_printf(dev, "Failed to register Link handler"); + device_printf(dev, "Failed to register Link handler\n"); return (error); } + bus_describe_intr(dev, adapter->res, adapter->tag, "link"); adapter->linkvec = vector; return (0);