Message ID | 1309885050.2271.36.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
On Tue, 2011-07-05 at 18:57 +0200, Eric Dumazet wrote: > We should log an error once, just in case... [] > diff --git a/drivers/net/b44.c b/drivers/net/b44.c [] > @@ -781,6 +781,7 @@ static int b44_rx(struct b44 *bp, int budget) > if (len == 0) { > int i = 0; > > + pr_err_once("b44: zero len !\n"); Trivia: You don't need the "b44: " prefix. The embedded pr_fmt in pr_<level>_once adds it. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 98c977e..bc7ce27 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c @@ -781,6 +781,7 @@ static int b44_rx(struct b44 *bp, int budget) if (len == 0) { int i = 0; + pr_err_once("b44: zero len !\n"); do { udelay(2); barrier();