[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1266005514-2731-1-git-send-email-jochen@scram.de>
Date: Fri, 12 Feb 2010 21:11:54 +0100
From: Jochen Friedrich <jochen@...am.de>
To: Gary Zambrano <zambrano@...adcom.com>
Cc: netdev@...r.kernel.org, Jochen Friedrich <jochen@...am.de>
Subject: [PATCH] b44: Ratelimit timeout error message.
Signed-off-by: Jochen Friedrich <jochen@...am.de>
---
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 4869adb..499212e 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;
--
1.6.6
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists