diff options
author | Patrick McHardy <kaber@trash.net> | 2005-08-09 23:50:53 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:56:08 -0400 |
commit | 64ce207306debd7157f47282be94770407bec01c (patch) | |
tree | b4004f01b2b0e935b95bcce9a78e60a9e9e17f65 /net/ipv4/tcp_ipv4.c | |
parent | 64cf1e5d8b5f88d56509260e08fa0d8314277350 (diff) |
[NET]: Make NETDEBUG pure printk wrappers
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 83f72346274a..32a0ebc589d5 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -990,11 +990,10 @@ int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb) | |||
990 | * to destinations, already remembered | 990 | * to destinations, already remembered |
991 | * to the moment of synflood. | 991 | * to the moment of synflood. |
992 | */ | 992 | */ |
993 | LIMIT_NETDEBUG(printk(KERN_DEBUG "TCP: drop open " | 993 | LIMIT_NETDEBUG(KERN_DEBUG "TCP: drop open " |
994 | "request from %u.%u." | 994 | "request from %u.%u.%u.%u/%u\n", |
995 | "%u.%u/%u\n", | 995 | NIPQUAD(saddr), |
996 | NIPQUAD(saddr), | 996 | ntohs(skb->h.th->source)); |
997 | ntohs(skb->h.th->source))); | ||
998 | dst_release(dst); | 997 | dst_release(dst); |
999 | goto drop_and_free; | 998 | goto drop_and_free; |
1000 | } | 999 | } |
@@ -1118,7 +1117,7 @@ static int tcp_v4_checksum_init(struct sk_buff *skb) | |||
1118 | skb->nh.iph->daddr, skb->csum)) | 1117 | skb->nh.iph->daddr, skb->csum)) |
1119 | return 0; | 1118 | return 0; |
1120 | 1119 | ||
1121 | LIMIT_NETDEBUG(printk(KERN_DEBUG "hw tcp v4 csum failed\n")); | 1120 | LIMIT_NETDEBUG(KERN_DEBUG "hw tcp v4 csum failed\n"); |
1122 | skb->ip_summed = CHECKSUM_NONE; | 1121 | skb->ip_summed = CHECKSUM_NONE; |
1123 | } | 1122 | } |
1124 | if (skb->len <= 76) { | 1123 | if (skb->len <= 76) { |