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 347f2a25abb6..836f15c0c4a3 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -279,15 +279,15 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args) | |||
279 | case AF_INET: { | 279 | case AF_INET: { |
280 | struct sockaddr_in *sin = | 280 | struct sockaddr_in *sin = |
281 | (struct sockaddr_in *)args->address; | 281 | (struct sockaddr_in *)args->address; |
282 | snprintf(servername, sizeof(servername), NIPQUAD_FMT, | 282 | snprintf(servername, sizeof(servername), "%pI4", |
283 | NIPQUAD(sin->sin_addr.s_addr)); | 283 | &sin->sin_addr.s_addr); |
284 | break; | 284 | break; |
285 | } | 285 | } |
286 | case AF_INET6: { | 286 | case AF_INET6: { |
287 | struct sockaddr_in6 *sin = | 287 | struct sockaddr_in6 *sin = |
288 | (struct sockaddr_in6 *)args->address; | 288 | (struct sockaddr_in6 *)args->address; |
289 | snprintf(servername, sizeof(servername), NIP6_FMT, | 289 | snprintf(servername, sizeof(servername), "%pI6", |
290 | NIP6(sin->sin6_addr)); | 290 | &sin->sin6_addr); |
291 | break; | 291 | break; |
292 | } | 292 | } |
293 | default: | 293 | default: |