diff options
author | Joe Perches <joe@perches.com> | 2010-02-02 07:43:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-03 23:16:48 -0500 |
commit | 6884b348ed759184032306c9435a727741a72298 (patch) | |
tree | fefdff3812db7b64bf3af3b63a8fa8e649c48619 | |
parent | 650b2ef5d7f1378f65e6a313909d783e4b6477ed (diff) |
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>
-rw-r--r-- | net/rds/tcp_connect.c | 7 | ||||
-rw-r--r-- | net/rds/tcp_listen.c | 6 | ||||
-rw-r--r-- | net/rds/tcp_send.c | 4 |
3 files changed, 8 insertions, 9 deletions
diff --git a/net/rds/tcp_connect.c b/net/rds/tcp_connect.c index 211522f9a9a2..056256285987 100644 --- a/net/rds/tcp_connect.c +++ b/net/rds/tcp_connect.c | |||
@@ -90,8 +90,8 @@ int rds_tcp_conn_connect(struct rds_connection *conn) | |||
90 | 90 | ||
91 | ret = sock->ops->bind(sock, (struct sockaddr *)&src, sizeof(src)); | 91 | ret = sock->ops->bind(sock, (struct sockaddr *)&src, sizeof(src)); |
92 | if (ret) { | 92 | if (ret) { |
93 | rdsdebug("bind failed with %d at address %u.%u.%u.%u\n", | 93 | rdsdebug("bind failed with %d at address %pI4\n", |
94 | ret, NIPQUAD(conn->c_laddr)); | 94 | ret, &conn->c_laddr); |
95 | goto out; | 95 | goto out; |
96 | } | 96 | } |
97 | 97 | ||
@@ -108,8 +108,7 @@ int rds_tcp_conn_connect(struct rds_connection *conn) | |||
108 | O_NONBLOCK); | 108 | O_NONBLOCK); |
109 | sock = NULL; | 109 | sock = NULL; |
110 | 110 | ||
111 | rdsdebug("connect to address %u.%u.%u.%u returned %d\n", | 111 | rdsdebug("connect to address %pI4 returned %d\n", &conn->c_faddr, ret); |
112 | NIPQUAD(conn->c_faddr), ret); | ||
113 | if (ret == -EINPROGRESS) | 112 | if (ret == -EINPROGRESS) |
114 | ret = 0; | 113 | ret = 0; |
115 | 114 | ||
diff --git a/net/rds/tcp_listen.c b/net/rds/tcp_listen.c index 45474a436862..53cb1b54165d 100644 --- a/net/rds/tcp_listen.c +++ b/net/rds/tcp_listen.c | |||
@@ -66,9 +66,9 @@ static int rds_tcp_accept_one(struct socket *sock) | |||
66 | 66 | ||
67 | inet = inet_sk(new_sock->sk); | 67 | inet = inet_sk(new_sock->sk); |
68 | 68 | ||
69 | rdsdebug("accepted tcp %u.%u.%u.%u:%u -> %u.%u.%u.%u:%u\n", | 69 | rdsdebug("accepted tcp %pI4:%u -> %pI4:%u\n", |
70 | NIPQUAD(inet->inet_saddr), ntohs(inet->inet_sport), | 70 | &inet->inet_saddr, ntohs(inet->inet_sport), |
71 | NIPQUAD(inet->inet_daddr), ntohs(inet->inet_dport)); | 71 | &inet->inet_daddr, ntohs(inet->inet_dport)); |
72 | 72 | ||
73 | conn = rds_conn_create(inet->inet_saddr, inet->inet_daddr, | 73 | conn = rds_conn_create(inet->inet_saddr, inet->inet_daddr, |
74 | &rds_tcp_transport, GFP_KERNEL); | 74 | &rds_tcp_transport, GFP_KERNEL); |
diff --git a/net/rds/tcp_send.c b/net/rds/tcp_send.c index ab545e0cd5d6..34fdcc059e54 100644 --- a/net/rds/tcp_send.c +++ b/net/rds/tcp_send.c | |||
@@ -193,9 +193,9 @@ out: | |||
193 | rds_tcp_stats_inc(s_tcp_sndbuf_full); | 193 | rds_tcp_stats_inc(s_tcp_sndbuf_full); |
194 | ret = 0; | 194 | ret = 0; |
195 | } else { | 195 | } else { |
196 | printk(KERN_WARNING "RDS/tcp: send to %u.%u.%u.%u " | 196 | printk(KERN_WARNING "RDS/tcp: send to %pI4 " |
197 | "returned %d, disconnecting and reconnecting\n", | 197 | "returned %d, disconnecting and reconnecting\n", |
198 | NIPQUAD(conn->c_faddr), ret); | 198 | &conn->c_faddr, ret); |
199 | rds_conn_drop(conn); | 199 | rds_conn_drop(conn); |
200 | } | 200 | } |
201 | } | 201 | } |