[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1339401793-12258-1-git-send-email-stigge@antcom.de>
Date: Mon, 11 Jun 2012 10:03:11 +0200
From: Roland Stigge <stigge@...com.de>
To: davem@...emloft.net, eric.dumazet@...il.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kevin.wells@....com, srinivas.bakki@....com, aletes.xgr@...il.com,
linux-arm-kernel@...ts.infradead.org
Cc: Roland Stigge <stigge@...com.de>
Subject: [PATCH 1/3] net: lpc_eth: Replace WARN() trace with simple pr_warn()
A WARN() trace indicating a "BUG!" was identified as a "normal" case in the
xmit function in case all TX descriptors are occupied already. In this case,
NETDEV_TX_BUSY is returned, nothing buggy at all.
Signed-off-by: Roland Stigge <stigge@...com.de>
Tested-by: Alexandre Pereira da Silva <aletes.xgr@...il.com>
---
drivers/net/ethernet/nxp/lpc_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.orig/drivers/net/ethernet/nxp/lpc_eth.c
+++ linux-2.6/drivers/net/ethernet/nxp/lpc_eth.c
@@ -1114,7 +1114,7 @@ static int lpc_eth_hard_start_xmit(struc
buffers */
netif_stop_queue(ndev);
spin_unlock_irq(&pldat->lock);
- WARN(1, "BUG! TX request when no free TX buffers!\n");
+ pr_warn("Note: TX request when no free TX buffers.\n");
return NETDEV_TX_BUSY;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists