diff options
author | Joe Perches <joe@perches.com> | 2012-05-15 10:11:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-16 01:01:03 -0400 |
commit | 91df42bedccb919902c7cf7eb876c982ae7f1b1d (patch) | |
tree | a941627c25c941b8f26d20d2c214ff2004eae356 /net/ipv4/tcp_output.c | |
parent | f32138319ca6541e65f95f8e17c9cc88ac1baf94 (diff) |
net: ipv4 and ipv6: Convert printk(KERN_DEBUG to pr_debug
Use the current debugging style and enable dynamic_debug.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 7979bfd5d0fb..1a630825c45b 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -34,6 +34,8 @@ | |||
34 | * | 34 | * |
35 | */ | 35 | */ |
36 | 36 | ||
37 | #define pr_fmt(fmt) "TCP: " fmt | ||
38 | |||
37 | #include <net/tcp.h> | 39 | #include <net/tcp.h> |
38 | 40 | ||
39 | #include <linux/compiler.h> | 41 | #include <linux/compiler.h> |
@@ -2415,7 +2417,7 @@ int tcp_send_synack(struct sock *sk) | |||
2415 | 2417 | ||
2416 | skb = tcp_write_queue_head(sk); | 2418 | skb = tcp_write_queue_head(sk); |
2417 | if (skb == NULL || !(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN)) { | 2419 | if (skb == NULL || !(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_SYN)) { |
2418 | printk(KERN_DEBUG "tcp_send_synack: wrong queue state\n"); | 2420 | pr_debug("%s: wrong queue state\n", __func__); |
2419 | return -EFAULT; | 2421 | return -EFAULT; |
2420 | } | 2422 | } |
2421 | if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_ACK)) { | 2423 | if (!(TCP_SKB_CB(skb)->tcp_flags & TCPHDR_ACK)) { |