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/udp.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/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index a8135e1f528c..3a5bbbe7dd85 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -629,7 +629,7 @@ back_from_confirm: | |||
629 | /* ... which is an evident application bug. --ANK */ | 629 | /* ... which is an evident application bug. --ANK */ |
630 | release_sock(sk); | 630 | release_sock(sk); |
631 | 631 | ||
632 | LIMIT_NETDEBUG(printk(KERN_DEBUG "udp cork app bug 2\n")); | 632 | LIMIT_NETDEBUG(KERN_DEBUG "udp cork app bug 2\n"); |
633 | err = -EINVAL; | 633 | err = -EINVAL; |
634 | goto out; | 634 | goto out; |
635 | } | 635 | } |
@@ -694,7 +694,7 @@ static int udp_sendpage(struct sock *sk, struct page *page, int offset, | |||
694 | if (unlikely(!up->pending)) { | 694 | if (unlikely(!up->pending)) { |
695 | release_sock(sk); | 695 | release_sock(sk); |
696 | 696 | ||
697 | LIMIT_NETDEBUG(printk(KERN_DEBUG "udp cork app bug 3\n")); | 697 | LIMIT_NETDEBUG(KERN_DEBUG "udp cork app bug 3\n"); |
698 | return -EINVAL; | 698 | return -EINVAL; |
699 | } | 699 | } |
700 | 700 | ||
@@ -1103,7 +1103,7 @@ static int udp_checksum_init(struct sk_buff *skb, struct udphdr *uh, | |||
1103 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 1103 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
1104 | if (!udp_check(uh, ulen, saddr, daddr, skb->csum)) | 1104 | if (!udp_check(uh, ulen, saddr, daddr, skb->csum)) |
1105 | return 0; | 1105 | return 0; |
1106 | LIMIT_NETDEBUG(printk(KERN_DEBUG "udp v4 hw csum failure.\n")); | 1106 | LIMIT_NETDEBUG(KERN_DEBUG "udp v4 hw csum failure.\n"); |
1107 | skb->ip_summed = CHECKSUM_NONE; | 1107 | skb->ip_summed = CHECKSUM_NONE; |
1108 | } | 1108 | } |
1109 | if (skb->ip_summed != CHECKSUM_UNNECESSARY) | 1109 | if (skb->ip_summed != CHECKSUM_UNNECESSARY) |
@@ -1182,13 +1182,13 @@ int udp_rcv(struct sk_buff *skb) | |||
1182 | return(0); | 1182 | return(0); |
1183 | 1183 | ||
1184 | short_packet: | 1184 | short_packet: |
1185 | LIMIT_NETDEBUG(printk(KERN_DEBUG "UDP: short packet: From %u.%u.%u.%u:%u %d/%d to %u.%u.%u.%u:%u\n", | 1185 | LIMIT_NETDEBUG(KERN_DEBUG "UDP: short packet: From %u.%u.%u.%u:%u %d/%d to %u.%u.%u.%u:%u\n", |
1186 | NIPQUAD(saddr), | 1186 | NIPQUAD(saddr), |
1187 | ntohs(uh->source), | 1187 | ntohs(uh->source), |
1188 | ulen, | 1188 | ulen, |
1189 | len, | 1189 | len, |
1190 | NIPQUAD(daddr), | 1190 | NIPQUAD(daddr), |
1191 | ntohs(uh->dest))); | 1191 | ntohs(uh->dest)); |
1192 | no_header: | 1192 | no_header: |
1193 | UDP_INC_STATS_BH(UDP_MIB_INERRORS); | 1193 | UDP_INC_STATS_BH(UDP_MIB_INERRORS); |
1194 | kfree_skb(skb); | 1194 | kfree_skb(skb); |
@@ -1199,12 +1199,12 @@ csum_error: | |||
1199 | * RFC1122: OK. Discards the bad packet silently (as far as | 1199 | * RFC1122: OK. Discards the bad packet silently (as far as |
1200 | * the network is concerned, anyway) as per 4.1.3.4 (MUST). | 1200 | * the network is concerned, anyway) as per 4.1.3.4 (MUST). |
1201 | */ | 1201 | */ |
1202 | LIMIT_NETDEBUG(printk(KERN_DEBUG "UDP: bad checksum. From %d.%d.%d.%d:%d to %d.%d.%d.%d:%d ulen %d\n", | 1202 | LIMIT_NETDEBUG(KERN_DEBUG "UDP: bad checksum. From %d.%d.%d.%d:%d to %d.%d.%d.%d:%d ulen %d\n", |
1203 | NIPQUAD(saddr), | 1203 | NIPQUAD(saddr), |
1204 | ntohs(uh->source), | 1204 | ntohs(uh->source), |
1205 | NIPQUAD(daddr), | 1205 | NIPQUAD(daddr), |
1206 | ntohs(uh->dest), | 1206 | ntohs(uh->dest), |
1207 | ulen)); | 1207 | ulen); |
1208 | drop: | 1208 | drop: |
1209 | UDP_INC_STATS_BH(UDP_MIB_INERRORS); | 1209 | UDP_INC_STATS_BH(UDP_MIB_INERRORS); |
1210 | kfree_skb(skb); | 1210 | kfree_skb(skb); |