Skip to content

Commit

Permalink
sunrpc: Fix build warning due to typo in %pI4 format changes.
Browse files Browse the repository at this point in the history
Noticed by Stephen Hemminger.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Nov 3, 2008
1 parent 20971a0 commit e0db4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit e0db4a7

Please sign in to comment.