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>
This commit is contained in:
committed by
David S. Miller
parent
14d5e834f6
commit
21454aaad3
@@ -61,12 +61,12 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v)
|
||||
call = list_entry(v, struct rxrpc_call, link);
|
||||
trans = call->conn->trans;
|
||||
|
||||
sprintf(lbuff, NIPQUAD_FMT":%u",
|
||||
NIPQUAD(trans->local->srx.transport.sin.sin_addr),
|
||||
sprintf(lbuff, "%pI4:%u",
|
||||
&trans->local->srx.transport.sin.sin_addr,
|
||||
ntohs(trans->local->srx.transport.sin.sin_port));
|
||||
|
||||
sprintf(rbuff, NIPQUAD_FMT":%u",
|
||||
NIPQUAD(trans->peer->srx.transport.sin.sin_addr),
|
||||
sprintf(rbuff, "%pI4:%u",
|
||||
&trans->peer->srx.transport.sin.sin_addr,
|
||||
ntohs(trans->peer->srx.transport.sin.sin_port));
|
||||
|
||||
seq_printf(seq,
|
||||
@@ -144,12 +144,12 @@ static int rxrpc_connection_seq_show(struct seq_file *seq, void *v)
|
||||
conn = list_entry(v, struct rxrpc_connection, link);
|
||||
trans = conn->trans;
|
||||
|
||||
sprintf(lbuff, NIPQUAD_FMT":%u",
|
||||
NIPQUAD(trans->local->srx.transport.sin.sin_addr),
|
||||
sprintf(lbuff, "%pI4:%u",
|
||||
&trans->local->srx.transport.sin.sin_addr,
|
||||
ntohs(trans->local->srx.transport.sin.sin_port));
|
||||
|
||||
sprintf(rbuff, NIPQUAD_FMT":%u",
|
||||
NIPQUAD(trans->peer->srx.transport.sin.sin_addr),
|
||||
sprintf(rbuff, "%pI4:%u",
|
||||
&trans->peer->srx.transport.sin.sin_addr,
|
||||
ntohs(trans->peer->srx.transport.sin.sin_port));
|
||||
|
||||
seq_printf(seq,
|
||||
|
Reference in New Issue
Block a user