aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-29 15:52:50 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-29 15:52:50 -0400
commit5b095d98928fdb9e3b75be20a54b7a6cbf6ca9ad (patch)
treeb6caa0cdbaac016447a790881ad4a6c5dfce6900 /net
parent4b7a4274ca63dadd9c4f17fc953f3a5d19855c4c (diff)
net: replace %p6 with %pI6
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/bridge/netfilter/ebt_log.c2
-rw-r--r--net/ipv4/tcp_input.c2
-rw-r--r--net/ipv4/tcp_timer.c2
-rw-r--r--net/ipv6/addrlabel.c10
-rw-r--r--net/ipv6/ah6.c2
-rw-r--r--net/ipv6/esp6.c2
-rw-r--r--net/ipv6/exthdrs.c2
-rw-r--r--net/ipv6/icmp.c2
-rw-r--r--net/ipv6/ip6mr.c2
-rw-r--r--net/ipv6/ipcomp6.c2
-rw-r--r--net/ipv6/ndisc.c2
-rw-r--r--net/ipv6/netfilter/ip6t_LOG.c2
-rw-r--r--net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c2
-rw-r--r--net/ipv6/tcp_ipv6.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_conn.c4
-rw-r--r--net/netfilter/ipvs/ip_vs_core.c4
-rw-r--r--net/netfilter/ipvs/ip_vs_ctl.c4
-rw-r--r--net/netfilter/ipvs/ip_vs_proto.c6
-rw-r--r--net/netfilter/ipvs/ip_vs_proto_ah_esp.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_xmit.c8
-rw-r--r--net/netfilter/nf_conntrack_ftp.c2
-rw-r--r--net/netfilter/nf_conntrack_h323_main.c4
-rw-r--r--net/netfilter/xt_hashlimit.c2
-rw-r--r--net/netfilter/xt_recent.c2
-rw-r--r--net/netlabel/netlabel_addrlist.c2
-rw-r--r--net/sctp/ipv6.c18
-rw-r--r--net/sctp/sm_statefuns.c2
-rw-r--r--net/sunrpc/clnt.c2
-rw-r--r--net/sunrpc/rpcb_clnt.c2
-rw-r--r--net/sunrpc/svcauth_unix.c4
-rw-r--r--net/sunrpc/xprtsock.c8
-rw-r--r--net/xfrm/xfrm_policy.c4
-rw-r--r--net/xfrm/xfrm_state.c4
33 files changed, 60 insertions, 60 deletions
diff --git a/net/bridge/netfilter/ebt_log.c b/net/bridge/netfilter/ebt_log.c
index 3654f3ebdb8f..5e7cff3542f2 100644
--- a/net/bridge/netfilter/ebt_log.c
+++ b/net/bridge/netfilter/ebt_log.c
@@ -133,7 +133,7 @@ ebt_log_packet(u_int8_t pf, unsigned int hooknum,
133 printk(" INCOMPLETE IPv6 header"); 133 printk(" INCOMPLETE IPv6 header");
134 goto out; 134 goto out;
135 } 135 }
136 printk(" IPv6 SRC=%p6 IPv6 DST=%p6, IPv6 priority=0x%01X, Next Header=%d", 136 printk(" IPv6 SRC=%pI6 IPv6 DST=%pI6, IPv6 priority=0x%01X, Next Header=%d",
137 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr); 137 &ih->saddr, &ih->daddr, ih->priority, ih->nexthdr);
138 nexthdr = ih->nexthdr; 138 nexthdr = ih->nexthdr;
139 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr); 139 offset_ph = ipv6_skip_exthdr(skb, sizeof(_iph), &nexthdr);
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 191c06bb0f67..04909e4b3c4c 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -2346,7 +2346,7 @@ static void DBGUNDO(struct sock *sk, const char *msg)
2346#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 2346#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
2347 else if (sk->sk_family == AF_INET6) { 2347 else if (sk->sk_family == AF_INET6) {
2348 struct ipv6_pinfo *np = inet6_sk(sk); 2348 struct ipv6_pinfo *np = inet6_sk(sk);
2349 printk(KERN_DEBUG "Undo %s %p6/%u c%u l%u ss%u/%u p%u\n", 2349 printk(KERN_DEBUG "Undo %s %pI6/%u c%u l%u ss%u/%u p%u\n",
2350 msg, 2350 msg,
2351 &np->daddr, ntohs(inet->dport), 2351 &np->daddr, ntohs(inet->dport),
2352 tp->snd_cwnd, tcp_left_out(tp), 2352 tp->snd_cwnd, tcp_left_out(tp),
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index 4e6ee5205237..979c9d604eb0 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -306,7 +306,7 @@ static void tcp_retransmit_timer(struct sock *sk)
306#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 306#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
307 else if (sk->sk_family == AF_INET6) { 307 else if (sk->sk_family == AF_INET6) {
308 struct ipv6_pinfo *np = inet6_sk(sk); 308 struct ipv6_pinfo *np = inet6_sk(sk);
309 LIMIT_NETDEBUG(KERN_DEBUG "TCP: Treason uncloaked! Peer %p6:%u/%u shrinks window %u:%u. Repaired.\n", 309 LIMIT_NETDEBUG(KERN_DEBUG "TCP: Treason uncloaked! Peer %pI6:%u/%u shrinks window %u:%u. Repaired.\n",
310 &np->daddr, ntohs(inet->dport), 310 &np->daddr, ntohs(inet->dport),
311 inet->num, tp->snd_una, tp->snd_nxt); 311 inet->num, tp->snd_una, tp->snd_nxt);
312 } 312 }
diff --git a/net/ipv6/addrlabel.c b/net/ipv6/addrlabel.c
index d28036659d27..6ff73c4c126a 100644
--- a/net/ipv6/addrlabel.c
+++ b/net/ipv6/addrlabel.c
@@ -186,7 +186,7 @@ u32 ipv6_addr_label(struct net *net,
186 label = p ? p->label : IPV6_ADDR_LABEL_DEFAULT; 186 label = p ? p->label : IPV6_ADDR_LABEL_DEFAULT;
187 rcu_read_unlock(); 187 rcu_read_unlock();
188 188
189 ADDRLABEL(KERN_DEBUG "%s(addr=%p6, type=%d, ifindex=%d) => %08x\n", 189 ADDRLABEL(KERN_DEBUG "%s(addr=%pI6, type=%d, ifindex=%d) => %08x\n",
190 __func__, addr, type, ifindex, label); 190 __func__, addr, type, ifindex, label);
191 191
192 return label; 192 return label;
@@ -201,7 +201,7 @@ static struct ip6addrlbl_entry *ip6addrlbl_alloc(struct net *net,
201 struct ip6addrlbl_entry *newp; 201 struct ip6addrlbl_entry *newp;
202 int addrtype; 202 int addrtype;
203 203
204 ADDRLABEL(KERN_DEBUG "%s(prefix=%p6, prefixlen=%d, ifindex=%d, label=%u)\n", 204 ADDRLABEL(KERN_DEBUG "%s(prefix=%pI6, prefixlen=%d, ifindex=%d, label=%u)\n",
205 __func__, prefix, prefixlen, ifindex, (unsigned int)label); 205 __func__, prefix, prefixlen, ifindex, (unsigned int)label);
206 206
207 addrtype = ipv6_addr_type(prefix) & (IPV6_ADDR_MAPPED | IPV6_ADDR_COMPATv4 | IPV6_ADDR_LOOPBACK); 207 addrtype = ipv6_addr_type(prefix) & (IPV6_ADDR_MAPPED | IPV6_ADDR_COMPATv4 | IPV6_ADDR_LOOPBACK);
@@ -289,7 +289,7 @@ static int ip6addrlbl_add(struct net *net,
289 struct ip6addrlbl_entry *newp; 289 struct ip6addrlbl_entry *newp;
290 int ret = 0; 290 int ret = 0;
291 291
292 ADDRLABEL(KERN_DEBUG "%s(prefix=%p6, prefixlen=%d, ifindex=%d, label=%u, replace=%d)\n", 292 ADDRLABEL(KERN_DEBUG "%s(prefix=%pI6, prefixlen=%d, ifindex=%d, label=%u, replace=%d)\n",
293 __func__, prefix, prefixlen, ifindex, (unsigned int)label, 293 __func__, prefix, prefixlen, ifindex, (unsigned int)label,
294 replace); 294 replace);
295 295
@@ -313,7 +313,7 @@ static int __ip6addrlbl_del(struct net *net,
313 struct hlist_node *pos, *n; 313 struct hlist_node *pos, *n;
314 int ret = -ESRCH; 314 int ret = -ESRCH;
315 315
316 ADDRLABEL(KERN_DEBUG "%s(prefix=%p6, prefixlen=%d, ifindex=%d)\n", 316 ADDRLABEL(KERN_DEBUG "%s(prefix=%pI6, prefixlen=%d, ifindex=%d)\n",
317 __func__, prefix, prefixlen, ifindex); 317 __func__, prefix, prefixlen, ifindex);
318 318
319 hlist_for_each_entry_safe(p, pos, n, &ip6addrlbl_table.head, list) { 319 hlist_for_each_entry_safe(p, pos, n, &ip6addrlbl_table.head, list) {
@@ -337,7 +337,7 @@ static int ip6addrlbl_del(struct net *net,
337 struct in6_addr prefix_buf; 337 struct in6_addr prefix_buf;
338 int ret; 338 int ret;
339 339
340 ADDRLABEL(KERN_DEBUG "%s(prefix=%p6, prefixlen=%d, ifindex=%d)\n", 340 ADDRLABEL(KERN_DEBUG "%s(prefix=%pI6, prefixlen=%d, ifindex=%d)\n",
341 __func__, prefix, prefixlen, ifindex); 341 __func__, prefix, prefixlen, ifindex);
342 342
343 ipv6_addr_prefix(&prefix_buf, prefix, prefixlen); 343 ipv6_addr_prefix(&prefix_buf, prefix, prefixlen);
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c
index 9bc43f2527ce..7a8a01369e5c 100644
--- a/net/ipv6/ah6.c
+++ b/net/ipv6/ah6.c
@@ -419,7 +419,7 @@ static void ah6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
419 if (!x) 419 if (!x)
420 return; 420 return;
421 421
422 NETDEBUG(KERN_DEBUG "pmtu discovery on SA AH/%08x/%p6\n", 422 NETDEBUG(KERN_DEBUG "pmtu discovery on SA AH/%08x/%pI6\n",
423 ntohl(ah->spi), &iph->daddr); 423 ntohl(ah->spi), &iph->daddr);
424 424
425 xfrm_state_put(x); 425 xfrm_state_put(x);
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c
index ec4be188c341..c02a6308defe 100644
--- a/net/ipv6/esp6.c
+++ b/net/ipv6/esp6.c
@@ -367,7 +367,7 @@ static void esp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
367 x = xfrm_state_lookup((xfrm_address_t *)&iph->daddr, esph->spi, IPPROTO_ESP, AF_INET6); 367 x = xfrm_state_lookup((xfrm_address_t *)&iph->daddr, esph->spi, IPPROTO_ESP, AF_INET6);
368 if (!x) 368 if (!x)
369 return; 369 return;
370 printk(KERN_DEBUG "pmtu discovery on SA ESP/%08x/%p6\n", 370 printk(KERN_DEBUG "pmtu discovery on SA ESP/%08x/%pI6\n",
371 ntohl(esph->spi), &iph->daddr); 371 ntohl(esph->spi), &iph->daddr);
372 xfrm_state_put(x); 372 xfrm_state_put(x);
373} 373}
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index a89051468359..1c7f400a3cfe 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -219,7 +219,7 @@ static int ipv6_dest_hao(struct sk_buff *skb, int optoff)
219 219
220 if (!(ipv6_addr_type(&hao->addr) & IPV6_ADDR_UNICAST)) { 220 if (!(ipv6_addr_type(&hao->addr) & IPV6_ADDR_UNICAST)) {
221 LIMIT_NETDEBUG( 221 LIMIT_NETDEBUG(
222 KERN_DEBUG "hao is not an unicast addr: %p6\n", &hao->addr); 222 KERN_DEBUG "hao is not an unicast addr: %pI6\n", &hao->addr);
223 goto discard; 223 goto discard;
224 } 224 }
225 225
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
index b3fa38e40dc4..3c2821f9b529 100644
--- a/net/ipv6/icmp.c
+++ b/net/ipv6/icmp.c
@@ -681,7 +681,7 @@ static int icmpv6_rcv(struct sk_buff *skb)
681 skb->csum = ~csum_unfold(csum_ipv6_magic(saddr, daddr, skb->len, 681 skb->csum = ~csum_unfold(csum_ipv6_magic(saddr, daddr, skb->len,
682 IPPROTO_ICMPV6, 0)); 682 IPPROTO_ICMPV6, 0));
683 if (__skb_checksum_complete(skb)) { 683 if (__skb_checksum_complete(skb)) {
684 LIMIT_NETDEBUG(KERN_DEBUG "ICMPv6 checksum failed [%p6 > %p6]\n", 684 LIMIT_NETDEBUG(KERN_DEBUG "ICMPv6 checksum failed [%pI6 > %pI6]\n",
685 saddr, daddr); 685 saddr, daddr);
686 goto discard_it; 686 goto discard_it;
687 } 687 }
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 798e6a29dd83..c491fb98a5e3 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -297,7 +297,7 @@ static int ipmr_mfc_seq_show(struct seq_file *seq, void *v)
297 const struct mfc6_cache *mfc = v; 297 const struct mfc6_cache *mfc = v;
298 const struct ipmr_mfc_iter *it = seq->private; 298 const struct ipmr_mfc_iter *it = seq->private;
299 299
300 seq_printf(seq, "%p6 %p6 %-3d %8ld %8ld %8ld", 300 seq_printf(seq, "%pI6 %pI6 %-3d %8ld %8ld %8ld",
301 &mfc->mf6c_mcastgrp, &mfc->mf6c_origin, 301 &mfc->mf6c_mcastgrp, &mfc->mf6c_origin,
302 mfc->mf6c_parent, 302 mfc->mf6c_parent,
303 mfc->mfc_un.res.pkt, 303 mfc->mfc_un.res.pkt,
diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c
index 9566d8f73140..d4576a9c154f 100644
--- a/net/ipv6/ipcomp6.c
+++ b/net/ipv6/ipcomp6.c
@@ -67,7 +67,7 @@ static void ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
67 if (!x) 67 if (!x)
68 return; 68 return;
69 69
70 printk(KERN_DEBUG "pmtu discovery on SA IPCOMP/%08x/%p6\n", 70 printk(KERN_DEBUG "pmtu discovery on SA IPCOMP/%08x/%pI6\n",
71 spi, &iph->daddr); 71 spi, &iph->daddr);
72 xfrm_state_put(x); 72 xfrm_state_put(x);
73} 73}
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 191bb0722a7c..2a6752dae09d 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -647,7 +647,7 @@ static void ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb)
647 647
648 if ((probes -= neigh->parms->ucast_probes) < 0) { 648 if ((probes -= neigh->parms->ucast_probes) < 0) {
649 if (!(neigh->nud_state & NUD_VALID)) { 649 if (!(neigh->nud_state & NUD_VALID)) {
650 ND_PRINTK1(KERN_DEBUG "%s(): trying to ucast probe in NUD_INVALID: %p6\n", 650 ND_PRINTK1(KERN_DEBUG "%s(): trying to ucast probe in NUD_INVALID: %pI6\n",
651 __func__, target); 651 __func__, target);
652 } 652 }
653 ndisc_send_ns(dev, neigh, target, target, saddr); 653 ndisc_send_ns(dev, neigh, target, target, saddr);
diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c
index a61ce3010007..02885e8bb69b 100644
--- a/net/ipv6/netfilter/ip6t_LOG.c
+++ b/net/ipv6/netfilter/ip6t_LOG.c
@@ -61,7 +61,7 @@ static void dump_packet(const struct nf_loginfo *info,
61 } 61 }
62 62
63 /* Max length: 88 "SRC=0000.0000.0000.0000.0000.0000.0000.0000 DST=0000.0000.0000.0000.0000.0000.0000.0000 " */ 63 /* Max length: 88 "SRC=0000.0000.0000.0000.0000.0000.0000.0000 DST=0000.0000.0000.0000.0000.0000.0000.0000 " */
64 printk("SRC=%p6 DST=%p6 ", &ih->saddr, &ih->daddr); 64 printk("SRC=%pI6 DST=%pI6 ", &ih->saddr, &ih->daddr);
65 65
66 /* Max length: 44 "LEN=65535 TC=255 HOPLIMIT=255 FLOWLBL=FFFFF " */ 66 /* Max length: 44 "LEN=65535 TC=255 HOPLIMIT=255 FLOWLBL=FFFFF " */
67 printk("LEN=%Zu TC=%u HOPLIMIT=%u FLOWLBL=%u ", 67 printk("LEN=%Zu TC=%u HOPLIMIT=%u FLOWLBL=%u ",
diff --git a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
index b165a273c6c0..727b9530448a 100644
--- a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
+++ b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
@@ -56,7 +56,7 @@ static bool ipv6_invert_tuple(struct nf_conntrack_tuple *tuple,
56static int ipv6_print_tuple(struct seq_file *s, 56static int ipv6_print_tuple(struct seq_file *s,
57 const struct nf_conntrack_tuple *tuple) 57 const struct nf_conntrack_tuple *tuple)
58{ 58{
59 return seq_printf(s, "src=%p6 dst=%p6 ", 59 return seq_printf(s, "src=%pI6 dst=%pI6 ",
60 tuple->src.u3.ip6, tuple->dst.u3.ip6); 60 tuple->src.u3.ip6, tuple->dst.u3.ip6);
61} 61}
62 62
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 483550cfdf33..984276463a8d 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -872,7 +872,7 @@ static int tcp_v6_inbound_md5_hash (struct sock *sk, struct sk_buff *skb)
872 872
873 if (genhash || memcmp(hash_location, newhash, 16) != 0) { 873 if (genhash || memcmp(hash_location, newhash, 16) != 0) {
874 if (net_ratelimit()) { 874 if (net_ratelimit()) {
875 printk(KERN_INFO "MD5 Hash %s for (%p6, %u)->(%p6, %u)\n", 875 printk(KERN_INFO "MD5 Hash %s for (%pI6, %u)->(%pI6, %u)\n",
876 genhash ? "failed" : "mismatch", 876 genhash ? "failed" : "mismatch",
877 &ip6h->saddr, ntohs(th->source), 877 &ip6h->saddr, ntohs(th->source),
878 &ip6h->daddr, ntohs(th->dest)); 878 &ip6h->daddr, ntohs(th->dest));
diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c
index 89bf65be6f2c..60aba45023ff 100644
--- a/net/netfilter/ipvs/ip_vs_conn.c
+++ b/net/netfilter/ipvs/ip_vs_conn.c
@@ -820,7 +820,7 @@ static int ip_vs_conn_seq_show(struct seq_file *seq, void *v)
820 820
821#ifdef CONFIG_IP_VS_IPV6 821#ifdef CONFIG_IP_VS_IPV6
822 if (cp->af == AF_INET6) 822 if (cp->af == AF_INET6)
823 seq_printf(seq, "%-3s %p6 %04X %p6 %04X %p6 %04X %-11s %7lu\n", 823 seq_printf(seq, "%-3s %pI6 %04X %pI6 %04X %pI6 %04X %-11s %7lu\n",
824 ip_vs_proto_name(cp->protocol), 824 ip_vs_proto_name(cp->protocol),
825 &cp->caddr.in6, ntohs(cp->cport), 825 &cp->caddr.in6, ntohs(cp->cport),
826 &cp->vaddr.in6, ntohs(cp->vport), 826 &cp->vaddr.in6, ntohs(cp->vport),
@@ -881,7 +881,7 @@ static int ip_vs_conn_sync_seq_show(struct seq_file *seq, void *v)
881 881
882#ifdef CONFIG_IP_VS_IPV6 882#ifdef CONFIG_IP_VS_IPV6
883 if (cp->af == AF_INET6) 883 if (cp->af == AF_INET6)
884 seq_printf(seq, "%-3s %p6 %04X %p6 %04X %p6 %04X %-11s %-6s %7lu\n", 884 seq_printf(seq, "%-3s %pI6 %04X %pI6 %04X %pI6 %04X %-11s %-6s %7lu\n",
885 ip_vs_proto_name(cp->protocol), 885 ip_vs_proto_name(cp->protocol),
886 &cp->caddr.in6, ntohs(cp->cport), 886 &cp->caddr.in6, ntohs(cp->cport),
887 &cp->vaddr.in6, ntohs(cp->vport), 887 &cp->vaddr.in6, ntohs(cp->vport),
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index 9400587a01e7..c3c68443b5b1 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -805,7 +805,7 @@ static int ip_vs_out_icmp_v6(struct sk_buff *skb, int *related)
805 if (ic == NULL) 805 if (ic == NULL)
806 return NF_DROP; 806 return NF_DROP;
807 807
808 IP_VS_DBG(12, "Outgoing ICMPv6 (%d,%d) %p6->%p6\n", 808 IP_VS_DBG(12, "Outgoing ICMPv6 (%d,%d) %pI6->%pI6\n",
809 ic->icmp6_type, ntohs(icmpv6_id(ic)), 809 ic->icmp6_type, ntohs(icmpv6_id(ic)),
810 &iph->saddr, &iph->daddr); 810 &iph->saddr, &iph->daddr);
811 811
@@ -1175,7 +1175,7 @@ ip_vs_in_icmp_v6(struct sk_buff *skb, int *related, unsigned int hooknum)
1175 if (ic == NULL) 1175 if (ic == NULL)
1176 return NF_DROP; 1176 return NF_DROP;
1177 1177
1178 IP_VS_DBG(12, "Incoming ICMPv6 (%d,%d) %p6->%p6\n", 1178 IP_VS_DBG(12, "Incoming ICMPv6 (%d,%d) %pI6->%pI6\n",
1179 ic->icmp6_type, ntohs(icmpv6_id(ic)), 1179 ic->icmp6_type, ntohs(icmpv6_id(ic)),
1180 &iph->saddr, &iph->daddr); 1180 &iph->saddr, &iph->daddr);
1181 1181
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 28c47c0d5142..76db27ec9633 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -1867,7 +1867,7 @@ static int ip_vs_info_seq_show(struct seq_file *seq, void *v)
1867 if (iter->table == ip_vs_svc_table) { 1867 if (iter->table == ip_vs_svc_table) {
1868#ifdef CONFIG_IP_VS_IPV6 1868#ifdef CONFIG_IP_VS_IPV6
1869 if (svc->af == AF_INET6) 1869 if (svc->af == AF_INET6)
1870 seq_printf(seq, "%s [%p6]:%04X %s ", 1870 seq_printf(seq, "%s [%pI6]:%04X %s ",
1871 ip_vs_proto_name(svc->protocol), 1871 ip_vs_proto_name(svc->protocol),
1872 &svc->addr.in6, 1872 &svc->addr.in6,
1873 ntohs(svc->port), 1873 ntohs(svc->port),
@@ -1895,7 +1895,7 @@ static int ip_vs_info_seq_show(struct seq_file *seq, void *v)
1895#ifdef CONFIG_IP_VS_IPV6 1895#ifdef CONFIG_IP_VS_IPV6
1896 if (dest->af == AF_INET6) 1896 if (dest->af == AF_INET6)
1897 seq_printf(seq, 1897 seq_printf(seq,
1898 " -> [%p6]:%04X" 1898 " -> [%pI6]:%04X"
1899 " %-7s %-6d %-10d %-10d\n", 1899 " %-7s %-6d %-10d %-10d\n",
1900 &dest->addr.in6, 1900 &dest->addr.in6,
1901 ntohs(dest->port), 1901 ntohs(dest->port),
diff --git a/net/netfilter/ipvs/ip_vs_proto.c b/net/netfilter/ipvs/ip_vs_proto.c
index d7ce4f1839c9..54cd67fbfe74 100644
--- a/net/netfilter/ipvs/ip_vs_proto.c
+++ b/net/netfilter/ipvs/ip_vs_proto.c
@@ -203,7 +203,7 @@ ip_vs_tcpudp_debug_packet_v6(struct ip_vs_protocol *pp,
203 if (ih == NULL) 203 if (ih == NULL)
204 sprintf(buf, "%s TRUNCATED", pp->name); 204 sprintf(buf, "%s TRUNCATED", pp->name);
205 else if (ih->nexthdr == IPPROTO_FRAGMENT) 205 else if (ih->nexthdr == IPPROTO_FRAGMENT)
206 sprintf(buf, "%s %p6->%p6 frag", 206 sprintf(buf, "%s %pI6->%pI6 frag",
207 pp->name, &ih->saddr, &ih->daddr); 207 pp->name, &ih->saddr, &ih->daddr);
208 else { 208 else {
209 __be16 _ports[2], *pptr; 209 __be16 _ports[2], *pptr;
@@ -211,10 +211,10 @@ ip_vs_tcpudp_debug_packet_v6(struct ip_vs_protocol *pp,
211 pptr = skb_header_pointer(skb, offset + sizeof(struct ipv6hdr), 211 pptr = skb_header_pointer(skb, offset + sizeof(struct ipv6hdr),
212 sizeof(_ports), _ports); 212 sizeof(_ports), _ports);
213 if (pptr == NULL) 213 if (pptr == NULL)
214 sprintf(buf, "%s TRUNCATED %p6->%p6", 214 sprintf(buf, "%s TRUNCATED %pI6->%pI6",
215 pp->name, &ih->saddr, &ih->daddr); 215 pp->name, &ih->saddr, &ih->daddr);
216 else 216 else
217 sprintf(buf, "%s %p6:%u->%p6:%u", 217 sprintf(buf, "%s %pI6:%u->%pI6:%u",
218 pp->name, 218 pp->name,
219 &ih->saddr, ntohs(pptr[0]), 219 &ih->saddr, ntohs(pptr[0]),
220 &ih->daddr, ntohs(pptr[1])); 220 &ih->daddr, ntohs(pptr[1]));
diff --git a/net/netfilter/ipvs/ip_vs_proto_ah_esp.c b/net/netfilter/ipvs/ip_vs_proto_ah_esp.c
index 59f2d11b683e..6ede88812044 100644
--- a/net/netfilter/ipvs/ip_vs_proto_ah_esp.c
+++ b/net/netfilter/ipvs/ip_vs_proto_ah_esp.c
@@ -154,7 +154,7 @@ ah_esp_debug_packet_v6(struct ip_vs_protocol *pp, const struct sk_buff *skb,
154 if (ih == NULL) 154 if (ih == NULL)
155 sprintf(buf, "%s TRUNCATED", pp->name); 155 sprintf(buf, "%s TRUNCATED", pp->name);
156 else 156 else
157 sprintf(buf, "%s %p6->%p6", 157 sprintf(buf, "%s %pI6->%pI6",
158 pp->name, &ih->saddr, &ih->daddr); 158 pp->name, &ih->saddr, &ih->daddr);
159 159
160 printk(KERN_DEBUG "IPVS: %s: %s\n", msg, buf); 160 printk(KERN_DEBUG "IPVS: %s: %s\n", msg, buf);
diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfilter/ipvs/ip_vs_xmit.c
index be34c335cabe..fc342dda950a 100644
--- a/net/netfilter/ipvs/ip_vs_xmit.c
+++ b/net/netfilter/ipvs/ip_vs_xmit.c
@@ -141,12 +141,12 @@ __ip_vs_get_out_rt_v6(struct ip_vs_conn *cp)
141 NULL, &fl); 141 NULL, &fl);
142 if (!rt) { 142 if (!rt) {
143 spin_unlock(&dest->dst_lock); 143 spin_unlock(&dest->dst_lock);
144 IP_VS_DBG_RL("ip6_route_output error, dest: %p6\n", 144 IP_VS_DBG_RL("ip6_route_output error, dest: %pI6\n",
145 &dest->addr.in6); 145 &dest->addr.in6);
146 return NULL; 146 return NULL;
147 } 147 }
148 __ip_vs_dst_set(dest, 0, dst_clone(&rt->u.dst)); 148 __ip_vs_dst_set(dest, 0, dst_clone(&rt->u.dst));
149 IP_VS_DBG(10, "new dst %p6, refcnt=%d\n", 149 IP_VS_DBG(10, "new dst %pI6, refcnt=%d\n",
150 &dest->addr.in6, 150 &dest->addr.in6,
151 atomic_read(&rt->u.dst.__refcnt)); 151 atomic_read(&rt->u.dst.__refcnt));
152 } 152 }
@@ -166,7 +166,7 @@ __ip_vs_get_out_rt_v6(struct ip_vs_conn *cp)
166 166
167 rt = (struct rt6_info *)ip6_route_output(&init_net, NULL, &fl); 167 rt = (struct rt6_info *)ip6_route_output(&init_net, NULL, &fl);
168 if (!rt) { 168 if (!rt) {
169 IP_VS_DBG_RL("ip6_route_output error, dest: %p6\n", 169 IP_VS_DBG_RL("ip6_route_output error, dest: %pI6\n",
170 &cp->daddr.in6); 170 &cp->daddr.in6);
171 return NULL; 171 return NULL;
172 } 172 }
@@ -300,7 +300,7 @@ ip_vs_bypass_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
300 300
301 rt = (struct rt6_info *)ip6_route_output(&init_net, NULL, &fl); 301 rt = (struct rt6_info *)ip6_route_output(&init_net, NULL, &fl);
302 if (!rt) { 302 if (!rt) {
303 IP_VS_DBG_RL("ip_vs_bypass_xmit_v6(): ip6_route_output error, dest: %p6\n", 303 IP_VS_DBG_RL("ip_vs_bypass_xmit_v6(): ip6_route_output error, dest: %pI6\n",
304 &iph->daddr); 304 &iph->daddr);
305 goto tx_error_icmp; 305 goto tx_error_icmp;
306 } 306 }
diff --git a/net/netfilter/nf_conntrack_ftp.c b/net/netfilter/nf_conntrack_ftp.c
index 05bf82d345ce..8cab6d595909 100644
--- a/net/netfilter/nf_conntrack_ftp.c
+++ b/net/netfilter/nf_conntrack_ftp.c
@@ -467,7 +467,7 @@ static int help(struct sk_buff *skb,
467 NIPQUAD(cmd.u3.ip), 467 NIPQUAD(cmd.u3.ip),
468 NIPQUAD(ct->tuplehash[dir].tuple.src.u3.ip)); 468 NIPQUAD(ct->tuplehash[dir].tuple.src.u3.ip));
469 } else { 469 } else {
470 pr_debug("conntrack_ftp: NOT RECORDING: %p6 != %p6\n", 470 pr_debug("conntrack_ftp: NOT RECORDING: %pI6 != %pI6\n",
471 cmd.u3.ip6, 471 cmd.u3.ip6,
472 ct->tuplehash[dir].tuple.src.u3.ip6); 472 ct->tuplehash[dir].tuple.src.u3.ip6);
473 } 473 }
diff --git a/net/netfilter/nf_conntrack_h323_main.c b/net/netfilter/nf_conntrack_h323_main.c
index 29e49b1c80b3..99bc803d1dd1 100644
--- a/net/netfilter/nf_conntrack_h323_main.c
+++ b/net/netfilter/nf_conntrack_h323_main.c
@@ -850,7 +850,7 @@ static int process_setup(struct sk_buff *skb, struct nf_conn *ct,
850 get_h225_addr(ct, *data, &setup->destCallSignalAddress, 850 get_h225_addr(ct, *data, &setup->destCallSignalAddress,
851 &addr, &port) && 851 &addr, &port) &&
852 memcmp(&addr, &ct->tuplehash[!dir].tuple.src.u3, sizeof(addr))) { 852 memcmp(&addr, &ct->tuplehash[!dir].tuple.src.u3, sizeof(addr))) {
853 pr_debug("nf_ct_q931: set destCallSignalAddress %p6:%hu->%p6:%hu\n", 853 pr_debug("nf_ct_q931: set destCallSignalAddress %pI6:%hu->%pI6:%hu\n",
854 &addr, ntohs(port), &ct->tuplehash[!dir].tuple.src.u3, 854 &addr, ntohs(port), &ct->tuplehash[!dir].tuple.src.u3,
855 ntohs(ct->tuplehash[!dir].tuple.src.u.tcp.port)); 855 ntohs(ct->tuplehash[!dir].tuple.src.u.tcp.port));
856 ret = set_h225_addr(skb, data, dataoff, 856 ret = set_h225_addr(skb, data, dataoff,
@@ -866,7 +866,7 @@ static int process_setup(struct sk_buff *skb, struct nf_conn *ct,
866 get_h225_addr(ct, *data, &setup->sourceCallSignalAddress, 866 get_h225_addr(ct, *data, &setup->sourceCallSignalAddress,
867 &addr, &port) && 867 &addr, &port) &&
868 memcmp(&addr, &ct->tuplehash[!dir].tuple.dst.u3, sizeof(addr))) { 868 memcmp(&addr, &ct->tuplehash[!dir].tuple.dst.u3, sizeof(addr))) {
869 pr_debug("nf_ct_q931: set sourceCallSignalAddress %p6:%hu->%p6:%hu\n", 869 pr_debug("nf_ct_q931: set sourceCallSignalAddress %pI6:%hu->%pI6:%hu\n",
870 &addr, ntohs(port), &ct->tuplehash[!dir].tuple.dst.u3, 870 &addr, ntohs(port), &ct->tuplehash[!dir].tuple.dst.u3,
871 ntohs(ct->tuplehash[!dir].tuple.dst.u.tcp.port)); 871 ntohs(ct->tuplehash[!dir].tuple.dst.u.tcp.port));
872 ret = set_h225_addr(skb, data, dataoff, 872 ret = set_h225_addr(skb, data, dataoff,
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c
index f04c6ed43674..6379717f9044 100644
--- a/net/netfilter/xt_hashlimit.c
+++ b/net/netfilter/xt_hashlimit.c
@@ -904,7 +904,7 @@ static int dl_seq_real_show(struct dsthash_ent *ent, u_int8_t family,
904 ent->rateinfo.cost); 904 ent->rateinfo.cost);
905#if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE) 905#if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE)
906 case NFPROTO_IPV6: 906 case NFPROTO_IPV6:
907 return seq_printf(s, "%ld %p6:%u->%p6:%u %u %u %u\n", 907 return seq_printf(s, "%ld %pI6:%u->%pI6:%u %u %u %u\n",
908 (long)(ent->expires - jiffies)/HZ, 908 (long)(ent->expires - jiffies)/HZ,
909 &ent->dst.ip6.src, 909 &ent->dst.ip6.src,
910 ntohs(ent->dst.src_port), 910 ntohs(ent->dst.src_port),
diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c
index a377ea333e16..b785727a5bf7 100644
--- a/net/netfilter/xt_recent.c
+++ b/net/netfilter/xt_recent.c
@@ -426,7 +426,7 @@ static int recent_seq_show(struct seq_file *seq, void *v)
426 "oldest_pkt: %u", NIPQUAD(e->addr.ip), e->ttl, 426 "oldest_pkt: %u", NIPQUAD(e->addr.ip), e->ttl,
427 e->stamps[i], e->index); 427 e->stamps[i], e->index);
428 else 428 else
429 seq_printf(seq, "src=%p6 ttl: %u last_seen: %lu oldest_pkt: %u", 429 seq_printf(seq, "src=%pI6 ttl: %u last_seen: %lu oldest_pkt: %u",
430 &e->addr.in6, e->ttl, e->stamps[i], e->index); 430 &e->addr.in6, e->ttl, e->stamps[i], e->index);
431 for (i = 0; i < e->nstamps; i++) 431 for (i = 0; i < e->nstamps; i++)
432 seq_printf(seq, "%s %lu", i ? "," : "", e->stamps[i]); 432 seq_printf(seq, "%s %lu", i ? "," : "", e->stamps[i]);
diff --git a/net/netlabel/netlabel_addrlist.c b/net/netlabel/netlabel_addrlist.c
index 614c95ec39df..8b1c58b0820c 100644
--- a/net/netlabel/netlabel_addrlist.c
+++ b/net/netlabel/netlabel_addrlist.c
@@ -370,7 +370,7 @@ void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf,
370 370
371 if (dev != NULL) 371 if (dev != NULL)
372 audit_log_format(audit_buf, " netif=%s", dev); 372 audit_log_format(audit_buf, " netif=%s", dev);
373 audit_log_format(audit_buf, " %s=%p6", dir, addr); 373 audit_log_format(audit_buf, " %s=%pI6", dir, addr);
374 if (ntohl(mask->s6_addr32[3]) != 0xffffffff) { 374 if (ntohl(mask->s6_addr32[3]) != 0xffffffff) {
375 u32 mask_len = 0; 375 u32 mask_len = 0;
376 u32 mask_val; 376 u32 mask_val;
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index e82668bd2b50..ceaa4aa066ea 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -223,7 +223,7 @@ static int sctp_v6_xmit(struct sk_buff *skb, struct sctp_transport *transport)
223 ipv6_addr_copy(&fl.fl6_dst, rt0->addr); 223 ipv6_addr_copy(&fl.fl6_dst, rt0->addr);
224 } 224 }
225 225
226 SCTP_DEBUG_PRINTK("%s: skb:%p, len:%d, src:%p6 dst:%p6\n", 226 SCTP_DEBUG_PRINTK("%s: skb:%p, len:%d, src:%pI6 dst:%pI6\n",
227 __func__, skb, skb->len, 227 __func__, skb, skb->len,
228 &fl.fl6_src, &fl.fl6_dst); 228 &fl.fl6_src, &fl.fl6_dst);
229 229
@@ -251,18 +251,18 @@ static struct dst_entry *sctp_v6_get_dst(struct sctp_association *asoc,
251 fl.oif = daddr->v6.sin6_scope_id; 251 fl.oif = daddr->v6.sin6_scope_id;
252 252
253 253
254 SCTP_DEBUG_PRINTK("%s: DST=%p6 ", __func__, &fl.fl6_dst); 254 SCTP_DEBUG_PRINTK("%s: DST=%pI6 ", __func__, &fl.fl6_dst);
255 255
256 if (saddr) { 256 if (saddr) {
257 ipv6_addr_copy(&fl.fl6_src, &saddr->v6.sin6_addr); 257 ipv6_addr_copy(&fl.fl6_src, &saddr->v6.sin6_addr);
258 SCTP_DEBUG_PRINTK("SRC=%p6 - ", &fl.fl6_src); 258 SCTP_DEBUG_PRINTK("SRC=%pI6 - ", &fl.fl6_src);
259 } 259 }
260 260
261 dst = ip6_route_output(&init_net, NULL, &fl); 261 dst = ip6_route_output(&init_net, NULL, &fl);
262 if (!dst->error) { 262 if (!dst->error) {
263 struct rt6_info *rt; 263 struct rt6_info *rt;
264 rt = (struct rt6_info *)dst; 264 rt = (struct rt6_info *)dst;
265 SCTP_DEBUG_PRINTK("rt6_dst:%p6 rt6_src:%p6\n", 265 SCTP_DEBUG_PRINTK("rt6_dst:%pI6 rt6_src:%pI6\n",
266 &rt->rt6i_dst.addr, &rt->rt6i_src.addr); 266 &rt->rt6i_dst.addr, &rt->rt6i_src.addr);
267 return dst; 267 return dst;
268 } 268 }
@@ -309,7 +309,7 @@ static void sctp_v6_get_saddr(struct sctp_sock *sk,
309 __u8 matchlen = 0; 309 __u8 matchlen = 0;
310 __u8 bmatchlen; 310 __u8 bmatchlen;
311 311
312 SCTP_DEBUG_PRINTK("%s: asoc:%p dst:%p daddr:%p6 ", 312 SCTP_DEBUG_PRINTK("%s: asoc:%p dst:%p daddr:%pI6 ",
313 __func__, asoc, dst, &daddr->v6.sin6_addr); 313 __func__, asoc, dst, &daddr->v6.sin6_addr);
314 314
315 if (!asoc) { 315 if (!asoc) {
@@ -318,7 +318,7 @@ static void sctp_v6_get_saddr(struct sctp_sock *sk,
318 &daddr->v6.sin6_addr, 318 &daddr->v6.sin6_addr,
319 inet6_sk(&sk->inet.sk)->srcprefs, 319 inet6_sk(&sk->inet.sk)->srcprefs,
320 &saddr->v6.sin6_addr); 320 &saddr->v6.sin6_addr);
321 SCTP_DEBUG_PRINTK("saddr from ipv6_get_saddr: %p6\n", 321 SCTP_DEBUG_PRINTK("saddr from ipv6_get_saddr: %pI6\n",
322 &saddr->v6.sin6_addr); 322 &saddr->v6.sin6_addr);
323 return; 323 return;
324 } 324 }
@@ -347,10 +347,10 @@ static void sctp_v6_get_saddr(struct sctp_sock *sk,
347 347
348 if (baddr) { 348 if (baddr) {
349 memcpy(saddr, baddr, sizeof(union sctp_addr)); 349 memcpy(saddr, baddr, sizeof(union sctp_addr));
350 SCTP_DEBUG_PRINTK("saddr: %p6\n", &saddr->v6.sin6_addr); 350 SCTP_DEBUG_PRINTK("saddr: %pI6\n", &saddr->v6.sin6_addr);
351 } else { 351 } else {
352 printk(KERN_ERR "%s: asoc:%p Could not find a valid source " 352 printk(KERN_ERR "%s: asoc:%p Could not find a valid source "
353 "address for the dest:%p6\n", 353 "address for the dest:%pI6\n",
354 __func__, asoc, &daddr->v6.sin6_addr); 354 __func__, asoc, &daddr->v6.sin6_addr);
355 } 355 }
356 356
@@ -720,7 +720,7 @@ static int sctp_v6_is_ce(const struct sk_buff *skb)
720/* Dump the v6 addr to the seq file. */ 720/* Dump the v6 addr to the seq file. */
721static void sctp_v6_seq_dump_addr(struct seq_file *seq, union sctp_addr *addr) 721static void sctp_v6_seq_dump_addr(struct seq_file *seq, union sctp_addr *addr)
722{ 722{
723 seq_printf(seq, "%p6 ", &addr->v6.sin6_addr); 723 seq_printf(seq, "%pI6 ", &addr->v6.sin6_addr);
724} 724}
725 725
726static void sctp_v6_ecn_capable(struct sock *sk) 726static void sctp_v6_ecn_capable(struct sock *sk)
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c
index 9f370964e733..d07b484b873a 100644
--- a/net/sctp/sm_statefuns.c
+++ b/net/sctp/sm_statefuns.c
@@ -1123,7 +1123,7 @@ sctp_disposition_t sctp_sf_backbeat_8_3(const struct sctp_endpoint *ep,
1123 if (from_addr.sa.sa_family == AF_INET6) { 1123 if (from_addr.sa.sa_family == AF_INET6) {
1124 if (net_ratelimit()) 1124 if (net_ratelimit())
1125 printk(KERN_WARNING 1125 printk(KERN_WARNING
1126 "%s association %p could not find address %p6\n", 1126 "%s association %p could not find address %pI6\n",
1127 __func__, 1127 __func__,
1128 asoc, 1128 asoc,
1129 &from_addr.v6.sin6_addr); 1129 &from_addr.v6.sin6_addr);
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 26f61fd11eab..8f067497c212 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -278,7 +278,7 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args)
278 case AF_INET6: { 278 case AF_INET6: {
279 struct sockaddr_in6 *sin = 279 struct sockaddr_in6 *sin =
280 (struct sockaddr_in6 *)args->address; 280 (struct sockaddr_in6 *)args->address;
281 snprintf(servername, sizeof(servername), "%p6", 281 snprintf(servername, sizeof(servername), "%pI6",
282 &sin->sin6_addr); 282 &sin->sin6_addr);
283 break; 283 break;
284 } 284 }
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index 968ec1f66bc3..4c8adadc214d 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -305,7 +305,7 @@ static int rpcb_register_netid6(struct sockaddr_in6 *address_to_register,
305 snprintf(buf, sizeof(buf), "::.%u.%u", 305 snprintf(buf, sizeof(buf), "::.%u.%u",
306 port >> 8, port & 0xff); 306 port >> 8, port & 0xff);
307 else 307 else
308 snprintf(buf, sizeof(buf), "%p6.%u.%u", 308 snprintf(buf, sizeof(buf), "%pI6.%u.%u",
309 &address_to_register->sin6_addr, 309 &address_to_register->sin6_addr,
310 port >> 8, port & 0xff); 310 port >> 8, port & 0xff);
311 map->r_addr = buf; 311 map->r_addr = buf;
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
index eb640c1a1bc9..16f714a247bc 100644
--- a/net/sunrpc/svcauth_unix.c
+++ b/net/sunrpc/svcauth_unix.c
@@ -168,7 +168,7 @@ static void ip_map_request(struct cache_detail *cd,
168 ntohl(im->m_addr.s6_addr32[3]) >> 8 & 0xff, 168 ntohl(im->m_addr.s6_addr32[3]) >> 8 & 0xff,
169 ntohl(im->m_addr.s6_addr32[3]) >> 0 & 0xff); 169 ntohl(im->m_addr.s6_addr32[3]) >> 0 & 0xff);
170 } else { 170 } else {
171 snprintf(text_addr, 40, "%p6", &im->m_addr); 171 snprintf(text_addr, 40, "%pI6", &im->m_addr);
172 } 172 }
173 qword_add(bpp, blen, im->m_class); 173 qword_add(bpp, blen, im->m_class);
174 qword_add(bpp, blen, text_addr); 174 qword_add(bpp, blen, text_addr);
@@ -286,7 +286,7 @@ static int ip_map_show(struct seq_file *m,
286 ntohl(addr.s6_addr32[3]) >> 0 & 0xff, 286 ntohl(addr.s6_addr32[3]) >> 0 & 0xff,
287 dom); 287 dom);
288 } else { 288 } else {
289 seq_printf(m, "%s %p6 %s\n", im->m_class, &addr, dom); 289 seq_printf(m, "%s %pI6 %s\n", im->m_class, &addr, dom);
290 } 290 }
291 return 0; 291 return 0;
292} 292}
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 3c9aff584579..f9ce3c9949d5 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -341,7 +341,7 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
341 341
342 buf = kzalloc(40, GFP_KERNEL); 342 buf = kzalloc(40, GFP_KERNEL);
343 if (buf) { 343 if (buf) {
344 snprintf(buf, 40, "%p6",&addr->sin6_addr); 344 snprintf(buf, 40, "%pI6",&addr->sin6_addr);
345 } 345 }
346 xprt->address_strings[RPC_DISPLAY_ADDR] = buf; 346 xprt->address_strings[RPC_DISPLAY_ADDR] = buf;
347 347
@@ -356,7 +356,7 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
356 356
357 buf = kzalloc(64, GFP_KERNEL); 357 buf = kzalloc(64, GFP_KERNEL);
358 if (buf) { 358 if (buf) {
359 snprintf(buf, 64, "addr=%p6 port=%u proto=%s", 359 snprintf(buf, 64, "addr=%pI6 port=%u proto=%s",
360 &addr->sin6_addr, 360 &addr->sin6_addr,
361 ntohs(addr->sin6_port), 361 ntohs(addr->sin6_port),
362 protocol); 362 protocol);
@@ -378,7 +378,7 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
378 378
379 buf = kzalloc(50, GFP_KERNEL); 379 buf = kzalloc(50, GFP_KERNEL);
380 if (buf) { 380 if (buf) {
381 snprintf(buf, 50, "%p6.%u.%u", 381 snprintf(buf, 50, "%pI6.%u.%u",
382 &addr->sin6_addr, 382 &addr->sin6_addr,
383 ntohs(addr->sin6_port) >> 8, 383 ntohs(addr->sin6_port) >> 8,
384 ntohs(addr->sin6_port) & 0xff); 384 ntohs(addr->sin6_port) & 0xff);
@@ -1407,7 +1407,7 @@ static int xs_bind6(struct sock_xprt *transport, struct socket *sock)
1407 if (port > last) 1407 if (port > last)
1408 nloop++; 1408 nloop++;
1409 } while (err == -EADDRINUSE && nloop != 2); 1409 } while (err == -EADDRINUSE && nloop != 2);
1410 dprintk("RPC: xs_bind6 %p6:%u: %s (%d)\n", 1410 dprintk("RPC: xs_bind6 %pI6:%u: %s (%d)\n",
1411 &myaddr.sin6_addr, port, err ? "failed" : "ok", err); 1411 &myaddr.sin6_addr, port, err ? "failed" : "ok", err);
1412 return err; 1412 return err;
1413} 1413}
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index f052b069f983..80b13eea30e7 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -2467,11 +2467,11 @@ static void xfrm_audit_common_policyinfo(struct xfrm_policy *xp,
2467 sel->prefixlen_d); 2467 sel->prefixlen_d);
2468 break; 2468 break;
2469 case AF_INET6: 2469 case AF_INET6:
2470 audit_log_format(audit_buf, " src=%p6", sel->saddr.a6); 2470 audit_log_format(audit_buf, " src=%pI6", sel->saddr.a6);
2471 if (sel->prefixlen_s != 128) 2471 if (sel->prefixlen_s != 128)
2472 audit_log_format(audit_buf, " src_prefixlen=%d", 2472 audit_log_format(audit_buf, " src_prefixlen=%d",
2473 sel->prefixlen_s); 2473 sel->prefixlen_s);
2474 audit_log_format(audit_buf, " dst=%p6", sel->daddr.a6); 2474 audit_log_format(audit_buf, " dst=%pI6", sel->daddr.a6);
2475 if (sel->prefixlen_d != 128) 2475 if (sel->prefixlen_d != 128)
2476 audit_log_format(audit_buf, " dst_prefixlen=%d", 2476 audit_log_format(audit_buf, " dst_prefixlen=%d",
2477 sel->prefixlen_d); 2477 sel->prefixlen_d);
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
index 7944861fb9bf..304eca4ac970 100644
--- a/net/xfrm/xfrm_state.c
+++ b/net/xfrm/xfrm_state.c
@@ -2115,7 +2115,7 @@ static void xfrm_audit_helper_sainfo(struct xfrm_state *x,
2115 NIPQUAD(x->id.daddr.a4)); 2115 NIPQUAD(x->id.daddr.a4));
2116 break; 2116 break;
2117 case AF_INET6: 2117 case AF_INET6:
2118 audit_log_format(audit_buf, " src=%p6 dst=%p6", 2118 audit_log_format(audit_buf, " src=%pI6 dst=%pI6",
2119 x->props.saddr.a6, x->id.daddr.a6); 2119 x->props.saddr.a6, x->id.daddr.a6);
2120 break; 2120 break;
2121 } 2121 }
@@ -2140,7 +2140,7 @@ static void xfrm_audit_helper_pktinfo(struct sk_buff *skb, u16 family,
2140 case AF_INET6: 2140 case AF_INET6:
2141 iph6 = ipv6_hdr(skb); 2141 iph6 = ipv6_hdr(skb);
2142 audit_log_format(audit_buf, 2142 audit_log_format(audit_buf,
2143 " src=%p6 dst=%p6 flowlbl=0x%x%02x%02x", 2143 " src=%pI6 dst=%pI6 flowlbl=0x%x%02x%02x",
2144 &iph6->saddr,&iph6->daddr, 2144 &iph6->saddr,&iph6->daddr,
2145 iph6->flow_lbl[0] & 0x0f, 2145 iph6->flow_lbl[0] & 0x0f,
2146 iph6->flow_lbl[1], 2146 iph6->flow_lbl[1],