summaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-28 16:05:40 -0700
committerDavid S. Miller <davem@davemloft.net>2008-10-28 16:05:40 -0700
commitb071195deba14b37ce896c26f20349b46e5f9fd2 (patch)
tree5f32ddc71be0a282765349301ea9173b413cdc39 /net/sunrpc
parent689afa7da106032a3e859ae35494f80dd6eac640 (diff)
downloadop-kernel-dev-b071195deba14b37ce896c26f20349b46e5f9fd2.zip
op-kernel-dev-b071195deba14b37ce896c26f20349b46e5f9fd2.tar.gz
net: replace all current users of NIP6_SEQFMT with %#p6
The define in kernel.h can be done away with at a later time. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/xprtsock.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 9a288d5..59155ae 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -365,10 +365,9 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
xprt->address_strings[RPC_DISPLAY_ALL] = buf;
buf = kzalloc(36, GFP_KERNEL);
- if (buf) {
- snprintf(buf, 36, NIP6_SEQFMT,
- NIP6(addr->sin6_addr));
- }
+ if (buf)
+ snprintf(buf, 36, "%#p6", &addr->sin6_addr);
+
xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = buf;
buf = kzalloc(8, GFP_KERNEL);
OpenPOWER on IntegriCloud