diff options
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 56b226797ae3..015f29edb619 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -267,7 +267,7 @@ static void xs_format_peer_addresses(struct rpc_xprt *xprt) | |||
267 | 267 | ||
268 | buf = kzalloc(20, GFP_KERNEL); | 268 | buf = kzalloc(20, GFP_KERNEL); |
269 | if (buf) { | 269 | if (buf) { |
270 | snprintf(buf, 20, "%u.%u.%u.%u", | 270 | snprintf(buf, 20, NIPQUAD_FMT, |
271 | NIPQUAD(addr->sin_addr.s_addr)); | 271 | NIPQUAD(addr->sin_addr.s_addr)); |
272 | } | 272 | } |
273 | xprt->address_strings[RPC_DISPLAY_ADDR] = buf; | 273 | xprt->address_strings[RPC_DISPLAY_ADDR] = buf; |
@@ -286,7 +286,7 @@ static void xs_format_peer_addresses(struct rpc_xprt *xprt) | |||
286 | 286 | ||
287 | buf = kzalloc(48, GFP_KERNEL); | 287 | buf = kzalloc(48, GFP_KERNEL); |
288 | if (buf) { | 288 | if (buf) { |
289 | snprintf(buf, 48, "addr=%u.%u.%u.%u port=%u proto=%s", | 289 | snprintf(buf, 48, "addr="NIPQUAD_FMT" port=%u proto=%s", |
290 | NIPQUAD(addr->sin_addr.s_addr), | 290 | NIPQUAD(addr->sin_addr.s_addr), |
291 | ntohs(addr->sin_port), | 291 | ntohs(addr->sin_port), |
292 | xprt->prot == IPPROTO_UDP ? "udp" : "tcp"); | 292 | xprt->prot == IPPROTO_UDP ? "udp" : "tcp"); |