aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fec.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-04-14 21:32:22 -0400
committerDavid S. Miller <davem@davemloft.net>2009-04-16 05:34:52 -0400
commit3644ee00c43cca08c9baac7eaea22250aaf84182 (patch)
tree75938c61f11bb6d000e6e6a1ab7ec358ea2073e5 /drivers/net/fec.c
parent8549889c3369f7653bd98861c3d2cf97d810dc37 (diff)
fec: remove debugging printks
These printks in fec_timeout do not give useful information in a production kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fec.c')
-rw-r--r--drivers/net/fec.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index ba3eb54b63f5..7b3e331dd442 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -377,41 +377,8 @@ fec_timeout(struct net_device *dev)
377{ 377{
378 struct fec_enet_private *fep = netdev_priv(dev); 378 struct fec_enet_private *fep = netdev_priv(dev);
379 379
380 printk("%s: transmit timed out.\n", dev->name);
381 dev->stats.tx_errors++; 380 dev->stats.tx_errors++;
382#ifndef final_version
383 {
384 int i;
385 struct bufdesc *bdp;
386
387 printk("Ring data dump: cur_tx %lx%s, dirty_tx %lx cur_rx: %lx\n",
388 (unsigned long)fep->cur_tx, fep->tx_full ? " (full)" : "",
389 (unsigned long)fep->dirty_tx,
390 (unsigned long)fep->cur_rx);
391
392 bdp = fep->tx_bd_base;
393 printk(" tx: %u buffers\n", TX_RING_SIZE);
394 for (i = 0 ; i < TX_RING_SIZE; i++) {
395 printk(" %08x: %04x %04x %08x\n",
396 (uint) bdp,
397 bdp->cbd_sc,
398 bdp->cbd_datlen,
399 (int) bdp->cbd_bufaddr);
400 bdp++;
401 }
402 381
403 bdp = fep->rx_bd_base;
404 printk(" rx: %lu buffers\n", (unsigned long) RX_RING_SIZE);
405 for (i = 0 ; i < RX_RING_SIZE; i++) {
406 printk(" %08x: %04x %04x %08x\n",
407 (uint) bdp,
408 bdp->cbd_sc,
409 bdp->cbd_datlen,
410 (int) bdp->cbd_bufaddr);
411 bdp++;
412 }
413 }
414#endif
415 fec_restart(dev, fep->full_duplex); 382 fec_restart(dev, fep->full_duplex);
416 netif_wake_queue(dev); 383 netif_wake_queue(dev);
417} 384}