drivers: replace NIPQUAD()
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
21454aaad3
commit
63779436ab
@ -515,14 +515,14 @@ int iser_connect(struct iser_conn *ib_conn,
|
||||
struct sockaddr *src, *dst;
|
||||
int err = 0;
|
||||
|
||||
sprintf(ib_conn->name,"%d.%d.%d.%d:%d",
|
||||
NIPQUAD(dst_addr->sin_addr.s_addr), dst_addr->sin_port);
|
||||
sprintf(ib_conn->name, "%pI4:%d",
|
||||
&dst_addr->sin_addr.s_addr, dst_addr->sin_port);
|
||||
|
||||
/* the device is known only --after-- address resolution */
|
||||
ib_conn->device = NULL;
|
||||
|
||||
iser_err("connecting to: %d.%d.%d.%d, port 0x%x\n",
|
||||
NIPQUAD(dst_addr->sin_addr), dst_addr->sin_port);
|
||||
iser_err("connecting to: %pI4, port 0x%x\n",
|
||||
&dst_addr->sin_addr, dst_addr->sin_port);
|
||||
|
||||
ib_conn->state = ISER_CONN_PENDING;
|
||||
|
||||
|
Reference in New Issue
Block a user