projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c59827
)
[PATCH] orinoco: limit message rate
author
Andrew Morton
<
[email protected]
>
Thu, 20 Oct 2005 04:23:44 +0000
(21:23 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 20 Oct 2005 06:04:30 +0000
(23:04 -0700)
Brice Goglin <
[email protected]
> reports a printk storm from this
driver. Fix.
Acked-by: David Gibson <
[email protected]
>
Cc: Jeff Garzik <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/net/wireless/orinoco.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/orinoco.c
b/drivers/net/wireless/orinoco.c
index cf3daaa1b369fbf7470e36c6055efa890774331d..15ceaf615756a2ceb397993c384b81ef117354a5 100644
(file)
--- 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)
txfid, NULL);
if (err) {
netif_start_queue(dev);
- printk(KERN_ERR "%s: Error %d transmitting packet\n",
- dev->name, err);
+ if (net_ratelimit())
+ printk(KERN_ERR "%s: Error %d transmitting packet\n",
+ dev->name, err);
stats->tx_errors++;
goto fail;
}