Skip to content

Commit a4fbf84

Browse files
JoePerchesdavem330
authored andcommitted
net/l2tp/l2tp_debugfs.c: Convert NIPQUAD to %pI4
Signed-off-by: Joe Perches <joe@perches.com> Acked-by: James Chapman <jchapman@katalix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 3eb14b9 commit a4fbf84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/l2tp/l2tp_debugfs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ static void l2tp_dfs_seq_tunnel_show(struct seq_file *m, void *v)
122122
seq_printf(m, "\nTUNNEL %u peer %u", tunnel->tunnel_id, tunnel->peer_tunnel_id);
123123
if (tunnel->sock) {
124124
struct inet_sock *inet = inet_sk(tunnel->sock);
125-
seq_printf(m, " from " NIPQUAD_FMT " to " NIPQUAD_FMT "\n",
126-
NIPQUAD(inet->inet_saddr), NIPQUAD(inet->inet_daddr));
125+
seq_printf(m, " from %pI4 to %pI4\n",
126+
&inet->inet_saddr, &inet->inet_daddr);
127127
if (tunnel->encap == L2TP_ENCAPTYPE_UDP)
128128
seq_printf(m, " source port %hu, dest port %hu\n",
129129
ntohs(inet->inet_sport), ntohs(inet->inet_dport));

0 commit comments

Comments
 (0)