diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-31 03:54:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-31 03:54:56 -0400 |
commit | 21454aaad30651ba0dcc16fe5271bc12ee21f132 (patch) | |
tree | eb525494d6f80a0e855840bc588ae1f422348b04 /net/sunrpc/svcsock.c | |
parent | 14d5e834f6b36667c7da56374645f99b6cf30814 (diff) |
net: replace NIPQUAD() in net/*/
Using NIPQUAD() with NIPQUAD_FMT, %d.%d.%d.%d or %u.%u.%u.%u
can be replaced with %pI4
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r-- | net/sunrpc/svcsock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 95293f549e9c..6f7d1f2d2f36 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -250,10 +250,10 @@ static int one_sock_name(char *buf, struct svc_sock *svsk) | |||
250 | 250 | ||
251 | switch(svsk->sk_sk->sk_family) { | 251 | switch(svsk->sk_sk->sk_family) { |
252 | case AF_INET: | 252 | case AF_INET: |
253 | len = sprintf(buf, "ipv4 %s %u.%u.%u.%u %d\n", | 253 | len = sprintf(buf, "ipv4 %s %pI4 %d\n", |
254 | svsk->sk_sk->sk_protocol==IPPROTO_UDP? | 254 | svsk->sk_sk->sk_protocol == IPPROTO_UDP ? |
255 | "udp" : "tcp", | 255 | "udp" : "tcp", |
256 | NIPQUAD(inet_sk(svsk->sk_sk)->rcv_saddr), | 256 | &inet_sk(svsk->sk_sk)->rcv_saddr, |
257 | inet_sk(svsk->sk_sk)->num); | 257 | inet_sk(svsk->sk_sk)->num); |
258 | break; | 258 | break; |
259 | default: | 259 | default: |