aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-10-13 17:42:24 -0400
committerDavid S. Miller <davem@davemloft.net>2005-10-13 17:42:24 -0400
commit046d20b73960b7a2474b6d5e920d54c3fd7c23fe (patch)
tree13d06fa7a11554585f6796f6c34d03f4c522365e /net
parenteb0d6041143fae63410c5622fef96862e6b20933 (diff)
[TCP]: Ratelimit debugging warning.
Better safe than sorry. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp_output.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index f37a50e55b68..7114031fdc70 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -436,11 +436,13 @@ int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len, unsigned int mss
436 u16 flags; 436 u16 flags;
437 437
438 if (unlikely(len >= skb->len)) { 438 if (unlikely(len >= skb->len)) {
439 printk(KERN_DEBUG "TCP: seg_size=%u, mss=%u, seq=%u, " 439 if (net_ratelimit()) {
440 "end_seq=%u, skb->len=%u.\n", len, mss_now, 440 printk(KERN_DEBUG "TCP: seg_size=%u, mss=%u, seq=%u, "
441 TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq, 441 "end_seq=%u, skb->len=%u.\n", len, mss_now,
442 skb->len); 442 TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq,
443 WARN_ON(1); 443 skb->len);
444 WARN_ON(1);
445 }
444 return 0; 446 return 0;
445 } 447 }
446 448