Skip to content

Commit

Permalink
b44: Ratelimit timeout error message.
Browse files Browse the repository at this point in the history
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jochen Friedrich authored and David S. Miller committed Feb 17, 2010
1 parent 47d7427 commit f6ca057
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions drivers/net/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f6ca057

Please sign in to comment.