aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-28 19:10:17 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-29 02:02:32 -0400
commitfdb46ee752ed05c94bac71fe3decdb5175ec6e1f (patch)
tree903aa4ba2c7afc996e9ddd3304e64770db830f7d /net/sunrpc/xprtsock.c
parent0c6ce78abf6e228d44c3840edb8a4ae0c1299825 (diff)
net, misc: replace uses of NIP6_FMT with %p6
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.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 59155aebd3b9..349852238957 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -341,8 +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, NIP6_FMT, 344 snprintf(buf, 40, "%p6",&addr->sin6_addr);
345 NIP6(addr->sin6_addr));
346 } 345 }
347 xprt->address_strings[RPC_DISPLAY_ADDR] = buf; 346 xprt->address_strings[RPC_DISPLAY_ADDR] = buf;
348 347
@@ -357,8 +356,8 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
357 356
358 buf = kzalloc(64, GFP_KERNEL); 357 buf = kzalloc(64, GFP_KERNEL);
359 if (buf) { 358 if (buf) {
360 snprintf(buf, 64, "addr="NIP6_FMT" port=%u proto=%s", 359 snprintf(buf, 64, "addr=%p6 port=%u proto=%s",
361 NIP6(addr->sin6_addr), 360 &addr->sin6_addr,
362 ntohs(addr->sin6_port), 361 ntohs(addr->sin6_port),
363 protocol); 362 protocol);
364 } 363 }
@@ -379,10 +378,10 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
379 378
380 buf = kzalloc(50, GFP_KERNEL); 379 buf = kzalloc(50, GFP_KERNEL);
381 if (buf) { 380 if (buf) {
382 snprintf(buf, 50, NIP6_FMT".%u.%u", 381 snprintf(buf, 50, "%p6.%u.%u",
383 NIP6(addr->sin6_addr), 382 &addr->sin6_addr,
384 ntohs(addr->sin6_port) >> 8, 383 ntohs(addr->sin6_port) >> 8,
385 ntohs(addr->sin6_port) & 0xff); 384 ntohs(addr->sin6_port) & 0xff);
386 } 385 }
387 xprt->address_strings[RPC_DISPLAY_UNIVERSAL_ADDR] = buf; 386 xprt->address_strings[RPC_DISPLAY_UNIVERSAL_ADDR] = buf;
388 387
@@ -1408,8 +1407,8 @@ static int xs_bind6(struct sock_xprt *transport, struct socket *sock)
1408 if (port > last) 1407 if (port > last)
1409 nloop++; 1408 nloop++;
1410 } while (err == -EADDRINUSE && nloop != 2); 1409 } while (err == -EADDRINUSE && nloop != 2);
1411 dprintk("RPC: xs_bind6 "NIP6_FMT":%u: %s (%d)\n", 1410 dprintk("RPC: xs_bind6 %p6:%u: %s (%d)\n",
1412 NIP6(myaddr.sin6_addr), port, err ? "failed" : "ok", err); 1411 &myaddr.sin6_addr, port, err ? "failed" : "ok", err);
1413 return err; 1412 return err;
1414} 1413}
1415 1414