diff options
author | Flavio Leitner <fbl@redhat.com> | 2011-10-24 04:15:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-24 17:36:08 -0400 |
commit | 78d81d15b74246c7cedf84894434890b33da3907 (patch) | |
tree | cf2dd0b8d51204c4a956f443adaa2c90732aa0b0 /net/ipv4/tcp_timer.c | |
parent | 8b1857357acd919b9a7fa391afbea30123fdfaec (diff) |
TCP: remove TCP_DEBUG
It was enabled by default and the messages guarded
by the define are useful.
Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r-- | net/ipv4/tcp_timer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index ecd44b0c45f1..2e0f0af76c19 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
@@ -334,7 +334,6 @@ void tcp_retransmit_timer(struct sock *sk) | |||
334 | * connection. If the socket is an orphan, time it out, | 334 | * connection. If the socket is an orphan, time it out, |
335 | * we cannot allow such beasts to hang infinitely. | 335 | * we cannot allow such beasts to hang infinitely. |
336 | */ | 336 | */ |
337 | #ifdef TCP_DEBUG | ||
338 | struct inet_sock *inet = inet_sk(sk); | 337 | struct inet_sock *inet = inet_sk(sk); |
339 | if (sk->sk_family == AF_INET) { | 338 | if (sk->sk_family == AF_INET) { |
340 | LIMIT_NETDEBUG(KERN_DEBUG "TCP: Peer %pI4:%u/%u unexpectedly shrunk window %u:%u (repaired)\n", | 339 | LIMIT_NETDEBUG(KERN_DEBUG "TCP: Peer %pI4:%u/%u unexpectedly shrunk window %u:%u (repaired)\n", |
@@ -349,7 +348,6 @@ void tcp_retransmit_timer(struct sock *sk) | |||
349 | inet->inet_num, tp->snd_una, tp->snd_nxt); | 348 | inet->inet_num, tp->snd_una, tp->snd_nxt); |
350 | } | 349 | } |
351 | #endif | 350 | #endif |
352 | #endif | ||
353 | if (tcp_time_stamp - tp->rcv_tstamp > TCP_RTO_MAX) { | 351 | if (tcp_time_stamp - tp->rcv_tstamp > TCP_RTO_MAX) { |
354 | tcp_write_err(sk); | 352 | tcp_write_err(sk); |
355 | goto out; | 353 | goto out; |