aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-14 07:09:00 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-14 07:09:00 -0400
commita7d632b6b4ad1c92746ed409e41f9dc571ec04e2 (patch)
tree90e6aa51a9df50aa4a437749e89356ab15a0ff5f /net/ipv4/udp.c
parent334f8b2afd9652e20f67ddee4fec483ed860425b (diff)
[IPV4]: Use NIPQUAD_FMT to format ipv4 addresses.
And use %u to format port. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 7b7fcacec4a0..b053ac795275 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1221,7 +1221,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[],
1221 return 0; 1221 return 0;
1222 1222
1223short_packet: 1223short_packet:
1224 LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: short packet: From %u.%u.%u.%u:%u %d/%d to %u.%u.%u.%u:%u\n", 1224 LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: short packet: From " NIPQUAD_FMT ":%u %d/%d to " NIPQUAD_FMT ":%u\n",
1225 proto == IPPROTO_UDPLITE ? "-Lite" : "", 1225 proto == IPPROTO_UDPLITE ? "-Lite" : "",
1226 NIPQUAD(saddr), 1226 NIPQUAD(saddr),
1227 ntohs(uh->source), 1227 ntohs(uh->source),
@@ -1236,7 +1236,7 @@ csum_error:
1236 * RFC1122: OK. Discards the bad packet silently (as far as 1236 * RFC1122: OK. Discards the bad packet silently (as far as
1237 * the network is concerned, anyway) as per 4.1.3.4 (MUST). 1237 * the network is concerned, anyway) as per 4.1.3.4 (MUST).
1238 */ 1238 */
1239 LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: bad checksum. From %d.%d.%d.%d:%d to %d.%d.%d.%d:%d ulen %d\n", 1239 LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: bad checksum. From " NIPQUAD_FMT ":%u to " NIPQUAD_FMT ":%u ulen %d\n",
1240 proto == IPPROTO_UDPLITE ? "-Lite" : "", 1240 proto == IPPROTO_UDPLITE ? "-Lite" : "",
1241 NIPQUAD(saddr), 1241 NIPQUAD(saddr),
1242 ntohs(uh->source), 1242 ntohs(uh->source),