diff options
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 8f067497c212..3ca518386d15 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -271,8 +271,8 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args) | |||
271 | case AF_INET: { | 271 | case AF_INET: { |
272 | struct sockaddr_in *sin = | 272 | struct sockaddr_in *sin = |
273 | (struct sockaddr_in *)args->address; | 273 | (struct sockaddr_in *)args->address; |
274 | snprintf(servername, sizeof(servername), NIPQUAD_FMT, | 274 | snprintf(servername, sizeof(servername), "%pI4", |
275 | NIPQUAD(sin->sin_addr.s_addr)); | 275 | &sin->sin_addr.s_addr); |
276 | break; | 276 | break; |
277 | } | 277 | } |
278 | case AF_INET6: { | 278 | case AF_INET6: { |