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/rxrpc/ar-transport.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/rxrpc/ar-transport.c')
-rw-r--r-- | net/rxrpc/ar-transport.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/rxrpc/ar-transport.c b/net/rxrpc/ar-transport.c index 64069c8769a5..0936e1acc30e 100644 --- a/net/rxrpc/ar-transport.c +++ b/net/rxrpc/ar-transport.c | |||
@@ -78,10 +78,10 @@ struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *local, | |||
78 | const char *new = "old"; | 78 | const char *new = "old"; |
79 | int usage; | 79 | int usage; |
80 | 80 | ||
81 | _enter("{%u.%u.%u.%u+%hu},{%u.%u.%u.%u+%hu},", | 81 | _enter("{%pI4+%hu},{%pI4+%hu},", |
82 | NIPQUAD(local->srx.transport.sin.sin_addr), | 82 | &local->srx.transport.sin.sin_addr, |
83 | ntohs(local->srx.transport.sin.sin_port), | 83 | ntohs(local->srx.transport.sin.sin_port), |
84 | NIPQUAD(peer->srx.transport.sin.sin_addr), | 84 | &peer->srx.transport.sin.sin_addr, |
85 | ntohs(peer->srx.transport.sin.sin_port)); | 85 | ntohs(peer->srx.transport.sin.sin_port)); |
86 | 86 | ||
87 | /* search the transport list first */ | 87 | /* search the transport list first */ |
@@ -149,10 +149,10 @@ struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *local, | |||
149 | { | 149 | { |
150 | struct rxrpc_transport *trans; | 150 | struct rxrpc_transport *trans; |
151 | 151 | ||
152 | _enter("{%u.%u.%u.%u+%hu},{%u.%u.%u.%u+%hu},", | 152 | _enter("{%pI4+%hu},{%pI4+%hu},", |
153 | NIPQUAD(local->srx.transport.sin.sin_addr), | 153 | &local->srx.transport.sin.sin_addr, |
154 | ntohs(local->srx.transport.sin.sin_port), | 154 | ntohs(local->srx.transport.sin.sin_port), |
155 | NIPQUAD(peer->srx.transport.sin.sin_addr), | 155 | &peer->srx.transport.sin.sin_addr, |
156 | ntohs(peer->srx.transport.sin.sin_port)); | 156 | ntohs(peer->srx.transport.sin.sin_port)); |
157 | 157 | ||
158 | /* search the transport list */ | 158 | /* search the transport list */ |