diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2018-02-27 23:22:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-28 12:00:27 -0500 |
commit | 66e19689f57b61a2f347ea79c16c6b3cb92f090e (patch) | |
tree | 9ccf502e26079a21c2325f6c640d85cea46743a3 | |
parent | 82695b30ffeeab665f41416c6f5015dea3147bd5 (diff) |
net/macmace: Fix and clean up log messages
Don't log the unexpanded "eth%d" format string.
Log the chip revision in the probe message (consistent with mace.c).
Drop redundant debug messages for FIFO events recorded in the
interface statistics (also consistent with mace.c).
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/apple/macmace.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/ethernet/apple/macmace.c b/drivers/net/ethernet/apple/macmace.c index f17a160dbff2..cfd8f3d8a94c 100644 --- a/drivers/net/ethernet/apple/macmace.c +++ b/drivers/net/ethernet/apple/macmace.c | |||
@@ -247,8 +247,8 @@ static int mace_probe(struct platform_device *pdev) | |||
247 | dev->netdev_ops = &mace_netdev_ops; | 247 | dev->netdev_ops = &mace_netdev_ops; |
248 | dev->watchdog_timeo = TX_TIMEOUT; | 248 | dev->watchdog_timeo = TX_TIMEOUT; |
249 | 249 | ||
250 | printk(KERN_INFO "%s: 68K MACE, hardware address %pM\n", | 250 | pr_info("Onboard MACE, hardware address %pM, chip revision 0x%04X\n", |
251 | dev->name, dev->dev_addr); | 251 | dev->dev_addr, mp->chipid); |
252 | 252 | ||
253 | err = register_netdev(dev); | 253 | err = register_netdev(dev); |
254 | if (!err) | 254 | if (!err) |
@@ -589,7 +589,6 @@ static irqreturn_t mace_interrupt(int irq, void *dev_id) | |||
589 | else if (fs & (UFLO|LCOL|RTRY)) { | 589 | else if (fs & (UFLO|LCOL|RTRY)) { |
590 | ++dev->stats.tx_aborted_errors; | 590 | ++dev->stats.tx_aborted_errors; |
591 | if (mb->xmtfs & UFLO) { | 591 | if (mb->xmtfs & UFLO) { |
592 | printk(KERN_ERR "%s: DMA underrun.\n", dev->name); | ||
593 | dev->stats.tx_fifo_errors++; | 592 | dev->stats.tx_fifo_errors++; |
594 | mace_txdma_reset(dev); | 593 | mace_txdma_reset(dev); |
595 | } | 594 | } |
@@ -644,10 +643,8 @@ static void mace_dma_rx_frame(struct net_device *dev, struct mace_frame *mf) | |||
644 | 643 | ||
645 | if (frame_status & (RS_OFLO | RS_CLSN | RS_FRAMERR | RS_FCSERR)) { | 644 | if (frame_status & (RS_OFLO | RS_CLSN | RS_FRAMERR | RS_FCSERR)) { |
646 | dev->stats.rx_errors++; | 645 | dev->stats.rx_errors++; |
647 | if (frame_status & RS_OFLO) { | 646 | if (frame_status & RS_OFLO) |
648 | printk(KERN_DEBUG "%s: fifo overflow.\n", dev->name); | ||
649 | dev->stats.rx_fifo_errors++; | 647 | dev->stats.rx_fifo_errors++; |
650 | } | ||
651 | if (frame_status & RS_CLSN) | 648 | if (frame_status & RS_CLSN) |
652 | dev->stats.collisions++; | 649 | dev->stats.collisions++; |
653 | if (frame_status & RS_FRAMERR) | 650 | if (frame_status & RS_FRAMERR) |