diff options
author | Jochen Friedrich <jochen@scram.de> | 2010-02-12 05:11:54 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-17 03:03:27 -0500 |
commit | f6ca057f1bfe251d944505fc5ba4df3762802539 (patch) | |
tree | d19dd467b9b529d3174996631b6d225b4c35d6a0 /drivers/net/b44.c | |
parent | 47d742752df4c1088589d4424840bc761613ab2a (diff) |
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.c | 12 |
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, | |||
189 | udelay(10); | 189 | udelay(10); |
190 | } | 190 | } |
191 | if (i == timeout) { | 191 | if (i == timeout) { |
192 | printk(KERN_ERR PFX "%s: BUG! Timeout waiting for bit %08x of register " | 192 | if (net_ratelimit()) |
193 | "%lx to %s.\n", | 193 | printk(KERN_ERR PFX "%s: BUG! Timeout waiting for bit " |
194 | bp->dev->name, | 194 | "%08x of register " |
195 | bit, reg, | 195 | "%lx to %s.\n", |
196 | (clear ? "clear" : "set")); | 196 | bp->dev->name, |
197 | bit, reg, | ||
198 | (clear ? "clear" : "set")); | ||
197 | return -ENODEV; | 199 | return -ENODEV; |
198 | } | 200 | } |
199 | return 0; | 201 | return 0; |