summaryrefslogtreecommitdiffstats
path: root/drivers/net/b44.c
diff options
context:
space:
mode:
authorJochen Friedrich <jochen@scram.de>2010-02-12 11:11:54 +0100
committerDavid S. Miller <davem@davemloft.net>2010-02-17 09:03:27 +0100
commitf6ca057f1bfe251d944505fc5ba4df3762802539 (patch)
treed19dd467b9b529d3174996631b6d225b4c35d6a0 /drivers/net/b44.c
parentpercpu: add __percpu sparse annotations to net drivers (diff)
downloadlinux-f6ca057f1bfe251d944505fc5ba4df3762802539.tar.xz
linux-f6ca057f1bfe251d944505fc5ba4df3762802539.zip
b44: Ratelimit timeout error message.
Signed-off-by: Jochen Friedrich <jochen@scram.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/b44.c')
-rw-r--r--drivers/net/b44.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c
index 9091c6574b1c..f21cbe63c7b1 100644
--- a/drivers/net/b44.c
+++ b/drivers/net/b44.c
@@ -189,11 +189,13 @@ static int b44_wait_bit(struct b44 *bp, unsigned long reg,
udelay(10);
}
if (i == timeout) {
- printk(KERN_ERR PFX "%s: BUG! Timeout waiting for bit %08x of register "
- "%lx to %s.\n",
- bp->dev->name,
- bit, reg,
- (clear ? "clear" : "set"));
+ if (net_ratelimit())
+ printk(KERN_ERR PFX "%s: BUG! Timeout waiting for bit "
+ "%08x of register "
+ "%lx to %s.\n",
+ bp->dev->name,
+ bit, reg,
+ (clear ? "clear" : "set"));
return -ENODEV;
}
return 0;