sunrpc: Fix build warning due to typo in %pI4 format changes.
authorDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2008 07:57:06 +0000 (23:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Nov 2008 07:57:06 +0000 (23:57 -0800)
Noticed by Stephen Hemminger.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/sunrpc/xprtsock.c

index c14d3fd8f3282a6ee0e3dbd3c8e6162c7979349c..5cbb404c4cdf89da7a6dd328ec5d7137d2d54dbc 100644 (file)
@@ -284,7 +284,7 @@ static void xs_format_ipv4_peer_addresses(struct rpc_xprt *xprt,
 
        buf = kzalloc(20, GFP_KERNEL);
        if (buf) {
-               snprintf(buf, 20, "pI4", &addr->sin_addr.s_addr);
+               snprintf(buf, 20, "%pI4", &addr->sin_addr.s_addr);
        }
        xprt->address_strings[RPC_DISPLAY_ADDR] = buf;