diff options
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 4895c341e46d..3ca518386d15 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -271,15 +271,15 @@ 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: { |
279 | struct sockaddr_in6 *sin = | 279 | struct sockaddr_in6 *sin = |
280 | (struct sockaddr_in6 *)args->address; | 280 | (struct sockaddr_in6 *)args->address; |
281 | snprintf(servername, sizeof(servername), NIP6_FMT, | 281 | snprintf(servername, sizeof(servername), "%pI6", |
282 | NIP6(sin->sin6_addr)); | 282 | &sin->sin6_addr); |
283 | break; | 283 | break; |
284 | } | 284 | } |
285 | default: | 285 | default: |