diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-04-14 07:09:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-14 07:09:00 -0400 |
commit | a7d632b6b4ad1c92746ed409e41f9dc571ec04e2 (patch) | |
tree | 90e6aa51a9df50aa4a437749e89356ab15a0ff5f /net | |
parent | 334f8b2afd9652e20f67ddee4fec483ed860425b (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')
-rw-r--r-- | net/ipv4/af_inet.c | 2 | ||||
-rw-r--r-- | net/ipv4/arp.c | 4 | ||||
-rw-r--r-- | net/ipv4/fib_trie.c | 4 | ||||
-rw-r--r-- | net/ipv4/icmp.c | 12 | ||||
-rw-r--r-- | net/ipv4/ip_fragment.c | 2 | ||||
-rw-r--r-- | net/ipv4/ip_input.c | 2 | ||||
-rw-r--r-- | net/ipv4/ipcomp.c | 2 | ||||
-rw-r--r-- | net/ipv4/ipconfig.c | 28 | ||||
-rw-r--r-- | net/ipv4/route.c | 26 | ||||
-rw-r--r-- | net/ipv4/tcp_input.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_probe.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_timer.c | 2 | ||||
-rw-r--r-- | net/ipv4/udp.c | 4 |
14 files changed, 47 insertions, 47 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 72ae8ed5a3d7..f2b5270efdaa 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -1077,7 +1077,7 @@ static int inet_sk_reselect_saddr(struct sock *sk) | |||
1077 | 1077 | ||
1078 | if (sysctl_ip_dynaddr > 1) { | 1078 | if (sysctl_ip_dynaddr > 1) { |
1079 | printk(KERN_INFO "%s(): shifting inet->" | 1079 | printk(KERN_INFO "%s(): shifting inet->" |
1080 | "saddr from %d.%d.%d.%d to %d.%d.%d.%d\n", | 1080 | "saddr from " NIPQUAD_FMT " to " NIPQUAD_FMT "\n", |
1081 | __func__, | 1081 | __func__, |
1082 | NIPQUAD(old_saddr), | 1082 | NIPQUAD(old_saddr), |
1083 | NIPQUAD(new_saddr)); | 1083 | NIPQUAD(new_saddr)); |
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 3ce2e137e7bc..68b72a7a1806 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -1310,7 +1310,7 @@ static void arp_format_neigh_entry(struct seq_file *seq, | |||
1310 | #if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE) | 1310 | #if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE) |
1311 | } | 1311 | } |
1312 | #endif | 1312 | #endif |
1313 | sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->primary_key)); | 1313 | sprintf(tbuf, NIPQUAD_FMT, NIPQUAD(*(u32*)n->primary_key)); |
1314 | seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n", | 1314 | seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n", |
1315 | tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); | 1315 | tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); |
1316 | read_unlock(&n->lock); | 1316 | read_unlock(&n->lock); |
@@ -1323,7 +1323,7 @@ static void arp_format_pneigh_entry(struct seq_file *seq, | |||
1323 | int hatype = dev ? dev->type : 0; | 1323 | int hatype = dev ? dev->type : 0; |
1324 | char tbuf[16]; | 1324 | char tbuf[16]; |
1325 | 1325 | ||
1326 | sprintf(tbuf, "%u.%u.%u.%u", NIPQUAD(*(u32*)n->key)); | 1326 | sprintf(tbuf, NIPQUAD_FMT, NIPQUAD(*(u32*)n->key)); |
1327 | seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n", | 1327 | seq_printf(seq, "%-16s 0x%-10x0x%-10x%s * %s\n", |
1328 | tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00", | 1328 | tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00", |
1329 | dev ? dev->name : "*"); | 1329 | dev ? dev->name : "*"); |
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 1ada5a6b03ea..ea294fffb9ce 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -2424,7 +2424,7 @@ static int fib_trie_seq_show(struct seq_file *seq, void *v) | |||
2424 | __be32 prf = htonl(mask_pfx(tn->key, tn->pos)); | 2424 | __be32 prf = htonl(mask_pfx(tn->key, tn->pos)); |
2425 | 2425 | ||
2426 | seq_indent(seq, iter->depth-1); | 2426 | seq_indent(seq, iter->depth-1); |
2427 | seq_printf(seq, " +-- %d.%d.%d.%d/%d %d %d %d\n", | 2427 | seq_printf(seq, " +-- " NIPQUAD_FMT "/%d %d %d %d\n", |
2428 | NIPQUAD(prf), tn->pos, tn->bits, tn->full_children, | 2428 | NIPQUAD(prf), tn->pos, tn->bits, tn->full_children, |
2429 | tn->empty_children); | 2429 | tn->empty_children); |
2430 | 2430 | ||
@@ -2435,7 +2435,7 @@ static int fib_trie_seq_show(struct seq_file *seq, void *v) | |||
2435 | __be32 val = htonl(l->key); | 2435 | __be32 val = htonl(l->key); |
2436 | 2436 | ||
2437 | seq_indent(seq, iter->depth); | 2437 | seq_indent(seq, iter->depth); |
2438 | seq_printf(seq, " |-- %d.%d.%d.%d\n", NIPQUAD(val)); | 2438 | seq_printf(seq, " |-- " NIPQUAD_FMT "\n", NIPQUAD(val)); |
2439 | 2439 | ||
2440 | hlist_for_each_entry_rcu(li, node, &l->list, hlist) { | 2440 | hlist_for_each_entry_rcu(li, node, &l->list, hlist) { |
2441 | struct fib_alias *fa; | 2441 | struct fib_alias *fa; |
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index 3e14d9cd29b3..f064031f2031 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c | |||
@@ -685,7 +685,7 @@ static void icmp_unreach(struct sk_buff *skb) | |||
685 | break; | 685 | break; |
686 | case ICMP_FRAG_NEEDED: | 686 | case ICMP_FRAG_NEEDED: |
687 | if (ipv4_config.no_pmtu_disc) { | 687 | if (ipv4_config.no_pmtu_disc) { |
688 | LIMIT_NETDEBUG(KERN_INFO "ICMP: %u.%u.%u.%u: " | 688 | LIMIT_NETDEBUG(KERN_INFO "ICMP: " NIPQUAD_FMT ": " |
689 | "fragmentation needed " | 689 | "fragmentation needed " |
690 | "and DF set.\n", | 690 | "and DF set.\n", |
691 | NIPQUAD(iph->daddr)); | 691 | NIPQUAD(iph->daddr)); |
@@ -697,7 +697,7 @@ static void icmp_unreach(struct sk_buff *skb) | |||
697 | } | 697 | } |
698 | break; | 698 | break; |
699 | case ICMP_SR_FAILED: | 699 | case ICMP_SR_FAILED: |
700 | LIMIT_NETDEBUG(KERN_INFO "ICMP: %u.%u.%u.%u: Source " | 700 | LIMIT_NETDEBUG(KERN_INFO "ICMP: " NIPQUAD_FMT ": Source " |
701 | "Route Failed.\n", | 701 | "Route Failed.\n", |
702 | NIPQUAD(iph->daddr)); | 702 | NIPQUAD(iph->daddr)); |
703 | break; | 703 | break; |
@@ -730,9 +730,9 @@ static void icmp_unreach(struct sk_buff *skb) | |||
730 | if (!net->ipv4.sysctl_icmp_ignore_bogus_error_responses && | 730 | if (!net->ipv4.sysctl_icmp_ignore_bogus_error_responses && |
731 | inet_addr_type(net, iph->daddr) == RTN_BROADCAST) { | 731 | inet_addr_type(net, iph->daddr) == RTN_BROADCAST) { |
732 | if (net_ratelimit()) | 732 | if (net_ratelimit()) |
733 | printk(KERN_WARNING "%u.%u.%u.%u sent an invalid ICMP " | 733 | printk(KERN_WARNING NIPQUAD_FMT " sent an invalid ICMP " |
734 | "type %u, code %u " | 734 | "type %u, code %u " |
735 | "error to a broadcast: %u.%u.%u.%u on %s\n", | 735 | "error to a broadcast: " NIPQUAD_FMT " on %s\n", |
736 | NIPQUAD(ip_hdr(skb)->saddr), | 736 | NIPQUAD(ip_hdr(skb)->saddr), |
737 | icmph->type, icmph->code, | 737 | icmph->type, icmph->code, |
738 | NIPQUAD(iph->daddr), | 738 | NIPQUAD(iph->daddr), |
@@ -953,8 +953,8 @@ static void icmp_address_reply(struct sk_buff *skb) | |||
953 | break; | 953 | break; |
954 | } | 954 | } |
955 | if (!ifa && net_ratelimit()) { | 955 | if (!ifa && net_ratelimit()) { |
956 | printk(KERN_INFO "Wrong address mask %u.%u.%u.%u from " | 956 | printk(KERN_INFO "Wrong address mask " NIPQUAD_FMT " from " |
957 | "%s/%u.%u.%u.%u\n", | 957 | "%s/" NIPQUAD_FMT "\n", |
958 | NIPQUAD(*mp), dev->name, NIPQUAD(rt->rt_src)); | 958 | NIPQUAD(*mp), dev->name, NIPQUAD(rt->rt_src)); |
959 | } | 959 | } |
960 | } | 960 | } |
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index 02ae470fe60c..cd6ce6ac6358 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -557,7 +557,7 @@ out_nomem: | |||
557 | out_oversize: | 557 | out_oversize: |
558 | if (net_ratelimit()) | 558 | if (net_ratelimit()) |
559 | printk(KERN_INFO | 559 | printk(KERN_INFO |
560 | "Oversized IP packet from %d.%d.%d.%d.\n", | 560 | "Oversized IP packet from " NIPQUAD_FMT ".\n", |
561 | NIPQUAD(qp->saddr)); | 561 | NIPQUAD(qp->saddr)); |
562 | out_fail: | 562 | out_fail: |
563 | IP_INC_STATS_BH(IPSTATS_MIB_REASMFAILS); | 563 | IP_INC_STATS_BH(IPSTATS_MIB_REASMFAILS); |
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index 4be00959b748..7b4bad6d572f 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c | |||
@@ -303,7 +303,7 @@ static inline int ip_rcv_options(struct sk_buff *skb) | |||
303 | if (IN_DEV_LOG_MARTIANS(in_dev) && | 303 | if (IN_DEV_LOG_MARTIANS(in_dev) && |
304 | net_ratelimit()) | 304 | net_ratelimit()) |
305 | printk(KERN_INFO "source route option " | 305 | printk(KERN_INFO "source route option " |
306 | "%u.%u.%u.%u -> %u.%u.%u.%u\n", | 306 | NIPQUAD_FMT " -> " NIPQUAD_FMT "\n", |
307 | NIPQUAD(iph->saddr), | 307 | NIPQUAD(iph->saddr), |
308 | NIPQUAD(iph->daddr)); | 308 | NIPQUAD(iph->daddr)); |
309 | in_dev_put(in_dev); | 309 | in_dev_put(in_dev); |
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index 58b60b2fb011..fb53ddfea5b5 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c | |||
@@ -179,7 +179,7 @@ static void ipcomp4_err(struct sk_buff *skb, u32 info) | |||
179 | spi, IPPROTO_COMP, AF_INET); | 179 | spi, IPPROTO_COMP, AF_INET); |
180 | if (!x) | 180 | if (!x) |
181 | return; | 181 | return; |
182 | NETDEBUG(KERN_DEBUG "pmtu discovery on SA IPCOMP/%08x/%u.%u.%u.%u\n", | 182 | NETDEBUG(KERN_DEBUG "pmtu discovery on SA IPCOMP/%08x/" NIPQUAD_FMT "\n", |
183 | spi, NIPQUAD(iph->daddr)); | 183 | spi, NIPQUAD(iph->daddr)); |
184 | xfrm_state_put(x); | 184 | xfrm_state_put(x); |
185 | } | 185 | } |
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 08e8fb60d315..0b859d46ea74 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c | |||
@@ -376,7 +376,7 @@ static int __init ic_defaults(void) | |||
376 | */ | 376 | */ |
377 | 377 | ||
378 | if (!ic_host_name_set) | 378 | if (!ic_host_name_set) |
379 | sprintf(init_utsname()->nodename, "%u.%u.%u.%u", NIPQUAD(ic_myaddr)); | 379 | sprintf(init_utsname()->nodename, NIPQUAD_FMT, NIPQUAD(ic_myaddr)); |
380 | 380 | ||
381 | if (root_server_addr == NONE) | 381 | if (root_server_addr == NONE) |
382 | root_server_addr = ic_servaddr; | 382 | root_server_addr = ic_servaddr; |
@@ -389,11 +389,11 @@ static int __init ic_defaults(void) | |||
389 | else if (IN_CLASSC(ntohl(ic_myaddr))) | 389 | else if (IN_CLASSC(ntohl(ic_myaddr))) |
390 | ic_netmask = htonl(IN_CLASSC_NET); | 390 | ic_netmask = htonl(IN_CLASSC_NET); |
391 | else { | 391 | else { |
392 | printk(KERN_ERR "IP-Config: Unable to guess netmask for address %u.%u.%u.%u\n", | 392 | printk(KERN_ERR "IP-Config: Unable to guess netmask for address " NIPQUAD_FMT "\n", |
393 | NIPQUAD(ic_myaddr)); | 393 | NIPQUAD(ic_myaddr)); |
394 | return -1; | 394 | return -1; |
395 | } | 395 | } |
396 | printk("IP-Config: Guessing netmask %u.%u.%u.%u\n", NIPQUAD(ic_netmask)); | 396 | printk("IP-Config: Guessing netmask " NIPQUAD_FMT "\n", NIPQUAD(ic_netmask)); |
397 | } | 397 | } |
398 | 398 | ||
399 | return 0; | 399 | return 0; |
@@ -981,9 +981,9 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str | |||
981 | ic_myaddr = b->your_ip; | 981 | ic_myaddr = b->your_ip; |
982 | ic_servaddr = server_id; | 982 | ic_servaddr = server_id; |
983 | #ifdef IPCONFIG_DEBUG | 983 | #ifdef IPCONFIG_DEBUG |
984 | printk("DHCP: Offered address %u.%u.%u.%u", | 984 | printk("DHCP: Offered address " NIPQUAD_FMT, |
985 | NIPQUAD(ic_myaddr)); | 985 | NIPQUAD(ic_myaddr)); |
986 | printk(" by server %u.%u.%u.%u\n", | 986 | printk(" by server " NIPQUAD_FMT "\n", |
987 | NIPQUAD(ic_servaddr)); | 987 | NIPQUAD(ic_servaddr)); |
988 | #endif | 988 | #endif |
989 | /* The DHCP indicated server address takes | 989 | /* The DHCP indicated server address takes |
@@ -1179,11 +1179,11 @@ static int __init ic_dynamic(void) | |||
1179 | return -1; | 1179 | return -1; |
1180 | } | 1180 | } |
1181 | 1181 | ||
1182 | printk("IP-Config: Got %s answer from %u.%u.%u.%u, ", | 1182 | printk("IP-Config: Got %s answer from " NIPQUAD_FMT ", ", |
1183 | ((ic_got_reply & IC_RARP) ? "RARP" | 1183 | ((ic_got_reply & IC_RARP) ? "RARP" |
1184 | : (ic_proto_enabled & IC_USE_DHCP) ? "DHCP" : "BOOTP"), | 1184 | : (ic_proto_enabled & IC_USE_DHCP) ? "DHCP" : "BOOTP"), |
1185 | NIPQUAD(ic_servaddr)); | 1185 | NIPQUAD(ic_servaddr)); |
1186 | printk("my address is %u.%u.%u.%u\n", NIPQUAD(ic_myaddr)); | 1186 | printk("my address is " NIPQUAD_FMT "\n", NIPQUAD(ic_myaddr)); |
1187 | 1187 | ||
1188 | return 0; | 1188 | return 0; |
1189 | } | 1189 | } |
@@ -1209,12 +1209,12 @@ static int pnp_seq_show(struct seq_file *seq, void *v) | |||
1209 | for (i = 0; i < CONF_NAMESERVERS_MAX; i++) { | 1209 | for (i = 0; i < CONF_NAMESERVERS_MAX; i++) { |
1210 | if (ic_nameservers[i] != NONE) | 1210 | if (ic_nameservers[i] != NONE) |
1211 | seq_printf(seq, | 1211 | seq_printf(seq, |
1212 | "nameserver %u.%u.%u.%u\n", | 1212 | "nameserver " NIPQUAD_FMT "\n", |
1213 | NIPQUAD(ic_nameservers[i])); | 1213 | NIPQUAD(ic_nameservers[i])); |
1214 | } | 1214 | } |
1215 | if (ic_servaddr != NONE) | 1215 | if (ic_servaddr != NONE) |
1216 | seq_printf(seq, | 1216 | seq_printf(seq, |
1217 | "bootserver %u.%u.%u.%u\n", | 1217 | "bootserver " NIPQUAD_FMT "\n", |
1218 | NIPQUAD(ic_servaddr)); | 1218 | NIPQUAD(ic_servaddr)); |
1219 | return 0; | 1219 | return 0; |
1220 | } | 1220 | } |
@@ -1389,13 +1389,13 @@ static int __init ip_auto_config(void) | |||
1389 | */ | 1389 | */ |
1390 | printk("IP-Config: Complete:"); | 1390 | printk("IP-Config: Complete:"); |
1391 | printk("\n device=%s", ic_dev->name); | 1391 | printk("\n device=%s", ic_dev->name); |
1392 | printk(", addr=%u.%u.%u.%u", NIPQUAD(ic_myaddr)); | 1392 | printk(", addr=" NIPQUAD_FMT, NIPQUAD(ic_myaddr)); |
1393 | printk(", mask=%u.%u.%u.%u", NIPQUAD(ic_netmask)); | 1393 | printk(", mask=" NIPQUAD_FMT, NIPQUAD(ic_netmask)); |
1394 | printk(", gw=%u.%u.%u.%u", NIPQUAD(ic_gateway)); | 1394 | printk(", gw=" NIPQUAD_FMT, NIPQUAD(ic_gateway)); |
1395 | printk(",\n host=%s, domain=%s, nis-domain=%s", | 1395 | printk(",\n host=%s, domain=%s, nis-domain=%s", |
1396 | utsname()->nodename, ic_domain, utsname()->domainname); | 1396 | utsname()->nodename, ic_domain, utsname()->domainname); |
1397 | printk(",\n bootserver=%u.%u.%u.%u", NIPQUAD(ic_servaddr)); | 1397 | printk(",\n bootserver=" NIPQUAD_FMT, NIPQUAD(ic_servaddr)); |
1398 | printk(", rootserver=%u.%u.%u.%u", NIPQUAD(root_server_addr)); | 1398 | printk(", rootserver=" NIPQUAD_FMT, NIPQUAD(root_server_addr)); |
1399 | printk(", rootpath=%s", root_server_path); | 1399 | printk(", rootpath=%s", root_server_path); |
1400 | printk("\n"); | 1400 | printk("\n"); |
1401 | #endif /* !SILENT */ | 1401 | #endif /* !SILENT */ |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 139799f8a8a1..780e9484c825 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -1059,10 +1059,10 @@ restart: | |||
1059 | #if RT_CACHE_DEBUG >= 2 | 1059 | #if RT_CACHE_DEBUG >= 2 |
1060 | if (rt->u.dst.rt_next) { | 1060 | if (rt->u.dst.rt_next) { |
1061 | struct rtable *trt; | 1061 | struct rtable *trt; |
1062 | printk(KERN_DEBUG "rt_cache @%02x: %u.%u.%u.%u", hash, | 1062 | printk(KERN_DEBUG "rt_cache @%02x: " NIPQUAD_FMT, hash, |
1063 | NIPQUAD(rt->rt_dst)); | 1063 | NIPQUAD(rt->rt_dst)); |
1064 | for (trt = rt->u.dst.rt_next; trt; trt = trt->u.dst.rt_next) | 1064 | for (trt = rt->u.dst.rt_next; trt; trt = trt->u.dst.rt_next) |
1065 | printk(" . %u.%u.%u.%u", NIPQUAD(trt->rt_dst)); | 1065 | printk(" . " NIPQUAD_FMT, NIPQUAD(trt->rt_dst)); |
1066 | printk("\n"); | 1066 | printk("\n"); |
1067 | } | 1067 | } |
1068 | #endif | 1068 | #endif |
@@ -1275,9 +1275,9 @@ void ip_rt_redirect(__be32 old_gw, __be32 daddr, __be32 new_gw, | |||
1275 | reject_redirect: | 1275 | reject_redirect: |
1276 | #ifdef CONFIG_IP_ROUTE_VERBOSE | 1276 | #ifdef CONFIG_IP_ROUTE_VERBOSE |
1277 | if (IN_DEV_LOG_MARTIANS(in_dev) && net_ratelimit()) | 1277 | if (IN_DEV_LOG_MARTIANS(in_dev) && net_ratelimit()) |
1278 | printk(KERN_INFO "Redirect from %u.%u.%u.%u on %s about " | 1278 | printk(KERN_INFO "Redirect from " NIPQUAD_FMT " on %s about " |
1279 | "%u.%u.%u.%u ignored.\n" | 1279 | NIPQUAD_FMT " ignored.\n" |
1280 | " Advised path = %u.%u.%u.%u -> %u.%u.%u.%u\n", | 1280 | " Advised path = " NIPQUAD_FMT " -> " NIPQUAD_FMT "\n", |
1281 | NIPQUAD(old_gw), dev->name, NIPQUAD(new_gw), | 1281 | NIPQUAD(old_gw), dev->name, NIPQUAD(new_gw), |
1282 | NIPQUAD(saddr), NIPQUAD(daddr)); | 1282 | NIPQUAD(saddr), NIPQUAD(daddr)); |
1283 | #endif | 1283 | #endif |
@@ -1299,7 +1299,7 @@ static struct dst_entry *ipv4_negative_advice(struct dst_entry *dst) | |||
1299 | rt->fl.oif); | 1299 | rt->fl.oif); |
1300 | #if RT_CACHE_DEBUG >= 1 | 1300 | #if RT_CACHE_DEBUG >= 1 |
1301 | printk(KERN_DEBUG "ipv4_negative_advice: redirect to " | 1301 | printk(KERN_DEBUG "ipv4_negative_advice: redirect to " |
1302 | "%u.%u.%u.%u/%02x dropped\n", | 1302 | NIPQUAD_FMT "/%02x dropped\n", |
1303 | NIPQUAD(rt->rt_dst), rt->fl.fl4_tos); | 1303 | NIPQUAD(rt->rt_dst), rt->fl.fl4_tos); |
1304 | #endif | 1304 | #endif |
1305 | rt_del(hash, rt); | 1305 | rt_del(hash, rt); |
@@ -1364,8 +1364,8 @@ void ip_rt_send_redirect(struct sk_buff *skb) | |||
1364 | if (IN_DEV_LOG_MARTIANS(in_dev) && | 1364 | if (IN_DEV_LOG_MARTIANS(in_dev) && |
1365 | rt->u.dst.rate_tokens == ip_rt_redirect_number && | 1365 | rt->u.dst.rate_tokens == ip_rt_redirect_number && |
1366 | net_ratelimit()) | 1366 | net_ratelimit()) |
1367 | printk(KERN_WARNING "host %u.%u.%u.%u/if%d ignores " | 1367 | printk(KERN_WARNING "host " NIPQUAD_FMT "/if%d ignores " |
1368 | "redirects for %u.%u.%u.%u to %u.%u.%u.%u.\n", | 1368 | "redirects for " NIPQUAD_FMT " to " NIPQUAD_FMT ".\n", |
1369 | NIPQUAD(rt->rt_src), rt->rt_iif, | 1369 | NIPQUAD(rt->rt_src), rt->rt_iif, |
1370 | NIPQUAD(rt->rt_dst), NIPQUAD(rt->rt_gateway)); | 1370 | NIPQUAD(rt->rt_dst), NIPQUAD(rt->rt_gateway)); |
1371 | #endif | 1371 | #endif |
@@ -1552,7 +1552,7 @@ static void ipv4_link_failure(struct sk_buff *skb) | |||
1552 | 1552 | ||
1553 | static int ip_rt_bug(struct sk_buff *skb) | 1553 | static int ip_rt_bug(struct sk_buff *skb) |
1554 | { | 1554 | { |
1555 | printk(KERN_DEBUG "ip_rt_bug: %u.%u.%u.%u -> %u.%u.%u.%u, %s\n", | 1555 | printk(KERN_DEBUG "ip_rt_bug: " NIPQUAD_FMT " -> " NIPQUAD_FMT ", %s\n", |
1556 | NIPQUAD(ip_hdr(skb)->saddr), NIPQUAD(ip_hdr(skb)->daddr), | 1556 | NIPQUAD(ip_hdr(skb)->saddr), NIPQUAD(ip_hdr(skb)->daddr), |
1557 | skb->dev ? skb->dev->name : "?"); | 1557 | skb->dev ? skb->dev->name : "?"); |
1558 | kfree_skb(skb); | 1558 | kfree_skb(skb); |
@@ -1730,8 +1730,8 @@ static void ip_handle_martian_source(struct net_device *dev, | |||
1730 | * RFC1812 recommendation, if source is martian, | 1730 | * RFC1812 recommendation, if source is martian, |
1731 | * the only hint is MAC header. | 1731 | * the only hint is MAC header. |
1732 | */ | 1732 | */ |
1733 | printk(KERN_WARNING "martian source %u.%u.%u.%u from " | 1733 | printk(KERN_WARNING "martian source " NIPQUAD_FMT " from " |
1734 | "%u.%u.%u.%u, on dev %s\n", | 1734 | NIPQUAD_FMT", on dev %s\n", |
1735 | NIPQUAD(daddr), NIPQUAD(saddr), dev->name); | 1735 | NIPQUAD(daddr), NIPQUAD(saddr), dev->name); |
1736 | if (dev->hard_header_len && skb_mac_header_was_set(skb)) { | 1736 | if (dev->hard_header_len && skb_mac_header_was_set(skb)) { |
1737 | int i; | 1737 | int i; |
@@ -2040,8 +2040,8 @@ martian_destination: | |||
2040 | RT_CACHE_STAT_INC(in_martian_dst); | 2040 | RT_CACHE_STAT_INC(in_martian_dst); |
2041 | #ifdef CONFIG_IP_ROUTE_VERBOSE | 2041 | #ifdef CONFIG_IP_ROUTE_VERBOSE |
2042 | if (IN_DEV_LOG_MARTIANS(in_dev) && net_ratelimit()) | 2042 | if (IN_DEV_LOG_MARTIANS(in_dev) && net_ratelimit()) |
2043 | printk(KERN_WARNING "martian destination %u.%u.%u.%u from " | 2043 | printk(KERN_WARNING "martian destination " NIPQUAD_FMT " from " |
2044 | "%u.%u.%u.%u, dev %s\n", | 2044 | NIPQUAD_FMT ", dev %s\n", |
2045 | NIPQUAD(daddr), NIPQUAD(saddr), dev->name); | 2045 | NIPQUAD(daddr), NIPQUAD(saddr), dev->name); |
2046 | #endif | 2046 | #endif |
2047 | 2047 | ||
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index bd0ee8ca8b21..3c6c7d7a7b0a 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -2309,7 +2309,7 @@ static void DBGUNDO(struct sock *sk, const char *msg) | |||
2309 | struct tcp_sock *tp = tcp_sk(sk); | 2309 | struct tcp_sock *tp = tcp_sk(sk); |
2310 | struct inet_sock *inet = inet_sk(sk); | 2310 | struct inet_sock *inet = inet_sk(sk); |
2311 | 2311 | ||
2312 | printk(KERN_DEBUG "Undo %s %u.%u.%u.%u/%u c%u l%u ss%u/%u p%u\n", | 2312 | printk(KERN_DEBUG "Undo %s " NIPQUAD_FMT "/%u c%u l%u ss%u/%u p%u\n", |
2313 | msg, | 2313 | msg, |
2314 | NIPQUAD(inet->daddr), ntohs(inet->dport), | 2314 | NIPQUAD(inet->daddr), ntohs(inet->dport), |
2315 | tp->snd_cwnd, tcp_left_out(tp), | 2315 | tp->snd_cwnd, tcp_left_out(tp), |
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 02519730e0d5..776615180b93 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1369,7 +1369,7 @@ int tcp_v4_conn_request(struct sock *sk, struct sk_buff *skb) | |||
1369 | * to the moment of synflood. | 1369 | * to the moment of synflood. |
1370 | */ | 1370 | */ |
1371 | LIMIT_NETDEBUG(KERN_DEBUG "TCP: drop open " | 1371 | LIMIT_NETDEBUG(KERN_DEBUG "TCP: drop open " |
1372 | "request from %u.%u.%u.%u/%u\n", | 1372 | "request from " NIPQUAD_FMT "/%u\n", |
1373 | NIPQUAD(saddr), | 1373 | NIPQUAD(saddr), |
1374 | ntohs(tcp_hdr(skb)->source)); | 1374 | ntohs(tcp_hdr(skb)->source)); |
1375 | goto drop_and_release; | 1375 | goto drop_and_release; |
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index 87dd5bff315f..1c509592574a 100644 --- a/net/ipv4/tcp_probe.c +++ b/net/ipv4/tcp_probe.c | |||
@@ -153,7 +153,7 @@ static int tcpprobe_sprint(char *tbuf, int n) | |||
153 | = ktime_to_timespec(ktime_sub(p->tstamp, tcp_probe.start)); | 153 | = ktime_to_timespec(ktime_sub(p->tstamp, tcp_probe.start)); |
154 | 154 | ||
155 | return snprintf(tbuf, n, | 155 | return snprintf(tbuf, n, |
156 | "%lu.%09lu %d.%d.%d.%d:%u %d.%d.%d.%d:%u" | 156 | "%lu.%09lu " NIPQUAD_FMT ":%u " NIPQUAD_FMT ":%u" |
157 | " %d %#x %#x %u %u %u %u\n", | 157 | " %d %#x %#x %u %u %u %u\n", |
158 | (unsigned long) tv.tv_sec, | 158 | (unsigned long) tv.tv_sec, |
159 | (unsigned long) tv.tv_nsec, | 159 | (unsigned long) tv.tv_nsec, |
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index 160d16f9f4fc..e588d6dc2a81 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
@@ -301,7 +301,7 @@ static void tcp_retransmit_timer(struct sock *sk) | |||
301 | #ifdef TCP_DEBUG | 301 | #ifdef TCP_DEBUG |
302 | if (1) { | 302 | if (1) { |
303 | struct inet_sock *inet = inet_sk(sk); | 303 | struct inet_sock *inet = inet_sk(sk); |
304 | LIMIT_NETDEBUG(KERN_DEBUG "TCP: Treason uncloaked! Peer %u.%u.%u.%u:%u/%u shrinks window %u:%u. Repaired.\n", | 304 | LIMIT_NETDEBUG(KERN_DEBUG "TCP: Treason uncloaked! Peer " NIPQUAD_FMT ":%u/%u shrinks window %u:%u. Repaired.\n", |
305 | NIPQUAD(inet->daddr), ntohs(inet->dport), | 305 | NIPQUAD(inet->daddr), ntohs(inet->dport), |
306 | inet->num, tp->snd_una, tp->snd_nxt); | 306 | inet->num, tp->snd_una, tp->snd_nxt); |
307 | } | 307 | } |
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 | ||
1223 | short_packet: | 1223 | short_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), |