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-proc.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-proc.c')
-rw-r--r-- | net/rxrpc/ar-proc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/rxrpc/ar-proc.c b/net/rxrpc/ar-proc.c index 017322e2786d..38047f713f2c 100644 --- a/net/rxrpc/ar-proc.c +++ b/net/rxrpc/ar-proc.c | |||
@@ -61,12 +61,12 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v) | |||
61 | call = list_entry(v, struct rxrpc_call, link); | 61 | call = list_entry(v, struct rxrpc_call, link); |
62 | trans = call->conn->trans; | 62 | trans = call->conn->trans; |
63 | 63 | ||
64 | sprintf(lbuff, NIPQUAD_FMT":%u", | 64 | sprintf(lbuff, "%pI4:%u", |
65 | NIPQUAD(trans->local->srx.transport.sin.sin_addr), | 65 | &trans->local->srx.transport.sin.sin_addr, |
66 | ntohs(trans->local->srx.transport.sin.sin_port)); | 66 | ntohs(trans->local->srx.transport.sin.sin_port)); |
67 | 67 | ||
68 | sprintf(rbuff, NIPQUAD_FMT":%u", | 68 | sprintf(rbuff, "%pI4:%u", |
69 | NIPQUAD(trans->peer->srx.transport.sin.sin_addr), | 69 | &trans->peer->srx.transport.sin.sin_addr, |
70 | ntohs(trans->peer->srx.transport.sin.sin_port)); | 70 | ntohs(trans->peer->srx.transport.sin.sin_port)); |
71 | 71 | ||
72 | seq_printf(seq, | 72 | seq_printf(seq, |
@@ -144,12 +144,12 @@ static int rxrpc_connection_seq_show(struct seq_file *seq, void *v) | |||
144 | conn = list_entry(v, struct rxrpc_connection, link); | 144 | conn = list_entry(v, struct rxrpc_connection, link); |
145 | trans = conn->trans; | 145 | trans = conn->trans; |
146 | 146 | ||
147 | sprintf(lbuff, NIPQUAD_FMT":%u", | 147 | sprintf(lbuff, "%pI4:%u", |
148 | NIPQUAD(trans->local->srx.transport.sin.sin_addr), | 148 | &trans->local->srx.transport.sin.sin_addr, |
149 | ntohs(trans->local->srx.transport.sin.sin_port)); | 149 | ntohs(trans->local->srx.transport.sin.sin_port)); |
150 | 150 | ||
151 | sprintf(rbuff, NIPQUAD_FMT":%u", | 151 | sprintf(rbuff, "%pI4:%u", |
152 | NIPQUAD(trans->peer->srx.transport.sin.sin_addr), | 152 | &trans->peer->srx.transport.sin.sin_addr, |
153 | ntohs(trans->peer->srx.transport.sin.sin_port)); | 153 | ntohs(trans->peer->srx.transport.sin.sin_port)); |
154 | 154 | ||
155 | seq_printf(seq, | 155 | seq_printf(seq, |