Commit f6ca057f authored by Jochen Friedrich's avatar Jochen Friedrich Committed by David S. Miller

b44: Ratelimit timeout error message.

Signed-off-by: default avatarJochen Friedrich <jochen@scram.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 47d74275
...@@ -189,11 +189,13 @@ static int b44_wait_bit(struct b44 *bp, unsigned long reg, ...@@ -189,11 +189,13 @@ static int b44_wait_bit(struct b44 *bp, unsigned long reg,
udelay(10); udelay(10);
} }
if (i == timeout) { if (i == timeout) {
printk(KERN_ERR PFX "%s: BUG! Timeout waiting for bit %08x of register " if (net_ratelimit())
"%lx to %s.\n", printk(KERN_ERR PFX "%s: BUG! Timeout waiting for bit "
bp->dev->name, "%08x of register "
bit, reg, "%lx to %s.\n",
(clear ? "clear" : "set")); bp->dev->name,
bit, reg,
(clear ? "clear" : "set"));
return -ENODEV; return -ENODEV;
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment