aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
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/sunrpc/xprtsock.c
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/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c8
1 files changed, 4 insertions, 4 deletions
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}