aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/Qos.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-01 12:18:36 -0400
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-01 12:18:36 -0400
commit9ec4475bf10bb2c30cd5e927bc453aa307f58123 (patch)
treeaf8057665e5939e406e0d67192fffe3a44bcf60d /drivers/staging/bcm/Qos.c
parentbeceem: use get_seconds for elapsed time (diff)
downloadlinux-dev-9ec4475bf10bb2c30cd5e927bc453aa307f58123.tar.xz
linux-dev-9ec4475bf10bb2c30cd5e927bc453aa307f58123.zip
beceem: debug message format changes
Add more debug messages and make them similar to other drivers Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Diffstat (limited to 'drivers/staging/bcm/Qos.c')
-rw-r--r--drivers/staging/bcm/Qos.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/staging/bcm/Qos.c b/drivers/staging/bcm/Qos.c
index 7e8013c105a2..21b611c68d37 100644
--- a/drivers/staging/bcm/Qos.c
+++ b/drivers/staging/bcm/Qos.c
@@ -356,8 +356,11 @@ VOID PruneQueue(PMINI_ADAPTER Adapter,/**<Pointer to the driver control structur
if(PacketToDrop)
{
- if(netstats)
- netstats->tx_dropped++;
+ if (netif_msg_tx_err(Adapter))
+ pr_info(PFX "%s: tx queue %d overlimit\n",
+ Adapter->dev->name, iIndex);
+
+ netstats->tx_dropped++;
atomic_inc(&Adapter->TxDroppedPacketCount);
DEQUEUEPACKET(Adapter->PackInfo[iIndex].FirstTxQueue,
Adapter->PackInfo[iIndex].LastTxQueue);