net/rds: remove uses of NIPQUAD, use %pI4
Signed-off-by: Joe Perches <joe@perches.com> Cc: Andy Grover <andy.grover@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
650b2ef5d7
commit
6884b348ed
@@ -90,8 +90,8 @@ int rds_tcp_conn_connect(struct rds_connection *conn)
|
||||
|
||||
ret = sock->ops->bind(sock, (struct sockaddr *)&src, sizeof(src));
|
||||
if (ret) {
|
||||
rdsdebug("bind failed with %d at address %u.%u.%u.%u\n",
|
||||
ret, NIPQUAD(conn->c_laddr));
|
||||
rdsdebug("bind failed with %d at address %pI4\n",
|
||||
ret, &conn->c_laddr);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -108,8 +108,7 @@ int rds_tcp_conn_connect(struct rds_connection *conn)
|
||||
O_NONBLOCK);
|
||||
sock = NULL;
|
||||
|
||||
rdsdebug("connect to address %u.%u.%u.%u returned %d\n",
|
||||
NIPQUAD(conn->c_faddr), ret);
|
||||
rdsdebug("connect to address %pI4 returned %d\n", &conn->c_faddr, ret);
|
||||
if (ret == -EINPROGRESS)
|
||||
ret = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user