diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-29 12:50:24 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-29 12:50:24 -0700 |
commit | 4b7a4274ca63dadd9c4f17fc953f3a5d19855c4c (patch) | |
tree | 946d6cef596756a95afe0cea51f5c3c9be4c3353 /net/sunrpc/xprtsock.c | |
parent | 4aa996066ffc0dba24036c961ee38dfdfbfc061c (diff) | |
download | linux-stable-4b7a4274ca63dadd9c4f17fc953f3a5d19855c4c.tar.gz linux-stable-4b7a4274ca63dadd9c4f17fc953f3a5d19855c4c.tar.bz2 linux-stable-4b7a4274ca63dadd9c4f17fc953f3a5d19855c4c.zip |
net: replace %#p6 format specifier with %pi6
gcc warns when using the # modifier with the %p format specifier,
so we can't use this to omit the colons when needed, introduces
%pi6 instead.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 349852238957..3c9aff584579 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -365,7 +365,7 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt, buf = kzalloc(36, GFP_KERNEL); if (buf) - snprintf(buf, 36, "%#p6", &addr->sin6_addr); + snprintf(buf, 36, "%pi6", &addr->sin6_addr); xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = buf; |