diff options
Diffstat (limited to 'net/rxrpc')
-rw-r--r-- | net/rxrpc/af_rxrpc.c | 4 | ||||
-rw-r--r-- | net/rxrpc/ar-error.c | 3 | ||||
-rw-r--r-- | net/rxrpc/ar-local.c | 16 | ||||
-rw-r--r-- | net/rxrpc/ar-peer.c | 8 | ||||
-rw-r--r-- | net/rxrpc/ar-proc.c | 16 | ||||
-rw-r--r-- | net/rxrpc/ar-transport.c | 12 | ||||
-rw-r--r-- | net/rxrpc/rxkad.c | 2 |
7 files changed, 30 insertions, 31 deletions
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 32e489118beb..d7d2bed7a699 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c | |||
@@ -96,9 +96,9 @@ static int rxrpc_validate_address(struct rxrpc_sock *rx, | |||
96 | 96 | ||
97 | switch (srx->transport.family) { | 97 | switch (srx->transport.family) { |
98 | case AF_INET: | 98 | case AF_INET: |
99 | _debug("INET: %x @ %u.%u.%u.%u", | 99 | _debug("INET: %x @ %pI4", |
100 | ntohs(srx->transport.sin.sin_port), | 100 | ntohs(srx->transport.sin.sin_port), |
101 | NIPQUAD(srx->transport.sin.sin_addr)); | 101 | &srx->transport.sin.sin_addr); |
102 | if (srx->transport_len > 8) | 102 | if (srx->transport_len > 8) |
103 | memset((void *)&srx->transport + 8, 0, | 103 | memset((void *)&srx->transport + 8, 0, |
104 | srx->transport_len - 8); | 104 | srx->transport_len - 8); |
diff --git a/net/rxrpc/ar-error.c b/net/rxrpc/ar-error.c index 6cb3e8890e7e..d4d1ae26d293 100644 --- a/net/rxrpc/ar-error.c +++ b/net/rxrpc/ar-error.c | |||
@@ -49,8 +49,7 @@ void rxrpc_UDP_error_report(struct sock *sk) | |||
49 | addr = *(__be32 *)(skb_network_header(skb) + serr->addr_offset); | 49 | addr = *(__be32 *)(skb_network_header(skb) + serr->addr_offset); |
50 | port = serr->port; | 50 | port = serr->port; |
51 | 51 | ||
52 | _net("Rx UDP Error from "NIPQUAD_FMT":%hu", | 52 | _net("Rx UDP Error from %pI4:%hu", &addr, ntohs(port)); |
53 | NIPQUAD(addr), ntohs(port)); | ||
54 | _debug("Msg l:%d d:%d", skb->len, skb->data_len); | 53 | _debug("Msg l:%d d:%d", skb->len, skb->data_len); |
55 | 54 | ||
56 | peer = rxrpc_find_peer(local, addr, port); | 55 | peer = rxrpc_find_peer(local, addr, port); |
diff --git a/net/rxrpc/ar-local.c b/net/rxrpc/ar-local.c index f3a2bd747a8f..807535ff29b5 100644 --- a/net/rxrpc/ar-local.c +++ b/net/rxrpc/ar-local.c | |||
@@ -131,10 +131,10 @@ struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *srx) | |||
131 | struct rxrpc_local *local; | 131 | struct rxrpc_local *local; |
132 | int ret; | 132 | int ret; |
133 | 133 | ||
134 | _enter("{%d,%u,%u.%u.%u.%u+%hu}", | 134 | _enter("{%d,%u,%pI4+%hu}", |
135 | srx->transport_type, | 135 | srx->transport_type, |
136 | srx->transport.family, | 136 | srx->transport.family, |
137 | NIPQUAD(srx->transport.sin.sin_addr), | 137 | &srx->transport.sin.sin_addr, |
138 | ntohs(srx->transport.sin.sin_port)); | 138 | ntohs(srx->transport.sin.sin_port)); |
139 | 139 | ||
140 | down_write(&rxrpc_local_sem); | 140 | down_write(&rxrpc_local_sem); |
@@ -143,10 +143,10 @@ struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *srx) | |||
143 | read_lock_bh(&rxrpc_local_lock); | 143 | read_lock_bh(&rxrpc_local_lock); |
144 | 144 | ||
145 | list_for_each_entry(local, &rxrpc_locals, link) { | 145 | list_for_each_entry(local, &rxrpc_locals, link) { |
146 | _debug("CMP {%d,%u,%u.%u.%u.%u+%hu}", | 146 | _debug("CMP {%d,%u,%pI4+%hu}", |
147 | local->srx.transport_type, | 147 | local->srx.transport_type, |
148 | local->srx.transport.family, | 148 | local->srx.transport.family, |
149 | NIPQUAD(local->srx.transport.sin.sin_addr), | 149 | &local->srx.transport.sin.sin_addr, |
150 | ntohs(local->srx.transport.sin.sin_port)); | 150 | ntohs(local->srx.transport.sin.sin_port)); |
151 | 151 | ||
152 | if (local->srx.transport_type != srx->transport_type || | 152 | if (local->srx.transport_type != srx->transport_type || |
@@ -188,11 +188,11 @@ struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *srx) | |||
188 | 188 | ||
189 | up_write(&rxrpc_local_sem); | 189 | up_write(&rxrpc_local_sem); |
190 | 190 | ||
191 | _net("LOCAL new %d {%d,%u,%u.%u.%u.%u+%hu}", | 191 | _net("LOCAL new %d {%d,%u,%pI4+%hu}", |
192 | local->debug_id, | 192 | local->debug_id, |
193 | local->srx.transport_type, | 193 | local->srx.transport_type, |
194 | local->srx.transport.family, | 194 | local->srx.transport.family, |
195 | NIPQUAD(local->srx.transport.sin.sin_addr), | 195 | &local->srx.transport.sin.sin_addr, |
196 | ntohs(local->srx.transport.sin.sin_port)); | 196 | ntohs(local->srx.transport.sin.sin_port)); |
197 | 197 | ||
198 | _leave(" = %p [new]", local); | 198 | _leave(" = %p [new]", local); |
@@ -203,11 +203,11 @@ found_local: | |||
203 | read_unlock_bh(&rxrpc_local_lock); | 203 | read_unlock_bh(&rxrpc_local_lock); |
204 | up_write(&rxrpc_local_sem); | 204 | up_write(&rxrpc_local_sem); |
205 | 205 | ||
206 | _net("LOCAL old %d {%d,%u,%u.%u.%u.%u+%hu}", | 206 | _net("LOCAL old %d {%d,%u,%pI4+%hu}", |
207 | local->debug_id, | 207 | local->debug_id, |
208 | local->srx.transport_type, | 208 | local->srx.transport_type, |
209 | local->srx.transport.family, | 209 | local->srx.transport.family, |
210 | NIPQUAD(local->srx.transport.sin.sin_addr), | 210 | &local->srx.transport.sin.sin_addr, |
211 | ntohs(local->srx.transport.sin.sin_port)); | 211 | ntohs(local->srx.transport.sin.sin_port)); |
212 | 212 | ||
213 | _leave(" = %p [reuse]", local); | 213 | _leave(" = %p [reuse]", local); |
diff --git a/net/rxrpc/ar-peer.c b/net/rxrpc/ar-peer.c index 2abe2081a5e8..edc026c1eb76 100644 --- a/net/rxrpc/ar-peer.c +++ b/net/rxrpc/ar-peer.c | |||
@@ -123,10 +123,10 @@ struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *srx, gfp_t gfp) | |||
123 | const char *new = "old"; | 123 | const char *new = "old"; |
124 | int usage; | 124 | int usage; |
125 | 125 | ||
126 | _enter("{%d,%d,%u.%u.%u.%u+%hu}", | 126 | _enter("{%d,%d,%pI4+%hu}", |
127 | srx->transport_type, | 127 | srx->transport_type, |
128 | srx->transport_len, | 128 | srx->transport_len, |
129 | NIPQUAD(srx->transport.sin.sin_addr), | 129 | &srx->transport.sin.sin_addr, |
130 | ntohs(srx->transport.sin.sin_port)); | 130 | ntohs(srx->transport.sin.sin_port)); |
131 | 131 | ||
132 | /* search the peer list first */ | 132 | /* search the peer list first */ |
@@ -177,12 +177,12 @@ struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *srx, gfp_t gfp) | |||
177 | new = "new"; | 177 | new = "new"; |
178 | 178 | ||
179 | success: | 179 | success: |
180 | _net("PEER %s %d {%d,%u,%u.%u.%u.%u+%hu}", | 180 | _net("PEER %s %d {%d,%u,%pI4+%hu}", |
181 | new, | 181 | new, |
182 | peer->debug_id, | 182 | peer->debug_id, |
183 | peer->srx.transport_type, | 183 | peer->srx.transport_type, |
184 | peer->srx.transport.family, | 184 | peer->srx.transport.family, |
185 | NIPQUAD(peer->srx.transport.sin.sin_addr), | 185 | &peer->srx.transport.sin.sin_addr, |
186 | ntohs(peer->srx.transport.sin.sin_port)); | 186 | ntohs(peer->srx.transport.sin.sin_port)); |
187 | 187 | ||
188 | _leave(" = %p {u=%d}", peer, atomic_read(&peer->usage)); | 188 | _leave(" = %p {u=%d}", peer, atomic_read(&peer->usage)); |
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, |
diff --git a/net/rxrpc/ar-transport.c b/net/rxrpc/ar-transport.c index 64069c8769a5..0936e1acc30e 100644 --- a/net/rxrpc/ar-transport.c +++ b/net/rxrpc/ar-transport.c | |||
@@ -78,10 +78,10 @@ struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *local, | |||
78 | const char *new = "old"; | 78 | const char *new = "old"; |
79 | int usage; | 79 | int usage; |
80 | 80 | ||
81 | _enter("{%u.%u.%u.%u+%hu},{%u.%u.%u.%u+%hu},", | 81 | _enter("{%pI4+%hu},{%pI4+%hu},", |
82 | NIPQUAD(local->srx.transport.sin.sin_addr), | 82 | &local->srx.transport.sin.sin_addr, |
83 | ntohs(local->srx.transport.sin.sin_port), | 83 | ntohs(local->srx.transport.sin.sin_port), |
84 | NIPQUAD(peer->srx.transport.sin.sin_addr), | 84 | &peer->srx.transport.sin.sin_addr, |
85 | ntohs(peer->srx.transport.sin.sin_port)); | 85 | ntohs(peer->srx.transport.sin.sin_port)); |
86 | 86 | ||
87 | /* search the transport list first */ | 87 | /* search the transport list first */ |
@@ -149,10 +149,10 @@ struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *local, | |||
149 | { | 149 | { |
150 | struct rxrpc_transport *trans; | 150 | struct rxrpc_transport *trans; |
151 | 151 | ||
152 | _enter("{%u.%u.%u.%u+%hu},{%u.%u.%u.%u+%hu},", | 152 | _enter("{%pI4+%hu},{%pI4+%hu},", |
153 | NIPQUAD(local->srx.transport.sin.sin_addr), | 153 | &local->srx.transport.sin.sin_addr, |
154 | ntohs(local->srx.transport.sin.sin_port), | 154 | ntohs(local->srx.transport.sin.sin_port), |
155 | NIPQUAD(peer->srx.transport.sin.sin_addr), | 155 | &peer->srx.transport.sin.sin_addr, |
156 | ntohs(peer->srx.transport.sin.sin_port)); | 156 | ntohs(peer->srx.transport.sin.sin_port)); |
157 | 157 | ||
158 | /* search the transport list */ | 158 | /* search the transport list */ |
diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c index ba3f6e49fddc..ef8f91030a15 100644 --- a/net/rxrpc/rxkad.c +++ b/net/rxrpc/rxkad.c | |||
@@ -897,7 +897,7 @@ static int rxkad_decrypt_ticket(struct rxrpc_connection *conn, | |||
897 | /* get the IPv4 address of the entity that requested the ticket */ | 897 | /* get the IPv4 address of the entity that requested the ticket */ |
898 | memcpy(&addr, p, sizeof(addr)); | 898 | memcpy(&addr, p, sizeof(addr)); |
899 | p += 4; | 899 | p += 4; |
900 | _debug("KIV ADDR : "NIPQUAD_FMT, NIPQUAD(addr)); | 900 | _debug("KIV ADDR : %pI4", &addr); |
901 | 901 | ||
902 | /* get the session key from the ticket */ | 902 | /* get the session key from the ticket */ |
903 | memcpy(&key, p, sizeof(key)); | 903 | memcpy(&key, p, sizeof(key)); |