diff options
author | Andrew Morton <akpm@osdl.org> | 2005-10-20 00:23:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-20 02:04:30 -0400 |
commit | c367c21c93ccdaf7e1e124891633d89f9ae77f54 (patch) | |
tree | b9507834adaae1172a746b008a4a05db5e625b22 /drivers/net/wireless/orinoco.c | |
parent | 1c59827d1da9bcd6970800d4f8a031b5859e8b4c (diff) |
[PATCH] orinoco: limit message rate
Brice Goglin <Brice.Goglin@ens-lyon.org> reports a printk storm from this
driver. Fix.
Acked-by: David Gibson <hermes@gibson.dropbear.id.au>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/wireless/orinoco.c')
-rw-r--r-- | drivers/net/wireless/orinoco.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index cf3daaa1b369..15ceaf615756 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c | |||
@@ -578,8 +578,9 @@ static int orinoco_xmit(struct sk_buff *skb, struct net_device *dev) | |||
578 | txfid, NULL); | 578 | txfid, NULL); |
579 | if (err) { | 579 | if (err) { |
580 | netif_start_queue(dev); | 580 | netif_start_queue(dev); |
581 | printk(KERN_ERR "%s: Error %d transmitting packet\n", | 581 | if (net_ratelimit()) |
582 | dev->name, err); | 582 | printk(KERN_ERR "%s: Error %d transmitting packet\n", |
583 | dev->name, err); | ||
583 | stats->tx_errors++; | 584 | stats->tx_errors++; |
584 | goto fail; | 585 | goto fail; |
585 | } | 586 | } |