diff options
author | Joe Perches <joe@perches.com> | 2010-04-15 18:37:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-15 18:37:13 -0400 |
commit | a4fbf8415c462208e77251779d80dbc81914cebd (patch) | |
tree | b011c6e12663cb540a7bc829b1049217842a35ae /net/l2tp | |
parent | 3eb14b944f2b5b6efe4e0ae3fe9601db78437d57 (diff) |
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>
Diffstat (limited to 'net/l2tp')
-rw-r--r-- | net/l2tp/l2tp_debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/l2tp/l2tp_debugfs.c b/net/l2tp/l2tp_debugfs.c index 908f10f9720e..104ec3b283d4 100644 --- a/net/l2tp/l2tp_debugfs.c +++ b/net/l2tp/l2tp_debugfs.c | |||
@@ -122,8 +122,8 @@ static void l2tp_dfs_seq_tunnel_show(struct seq_file *m, void *v) | |||
122 | seq_printf(m, "\nTUNNEL %u peer %u", tunnel->tunnel_id, tunnel->peer_tunnel_id); | 122 | seq_printf(m, "\nTUNNEL %u peer %u", tunnel->tunnel_id, tunnel->peer_tunnel_id); |
123 | if (tunnel->sock) { | 123 | if (tunnel->sock) { |
124 | struct inet_sock *inet = inet_sk(tunnel->sock); | 124 | struct inet_sock *inet = inet_sk(tunnel->sock); |
125 | seq_printf(m, " from " NIPQUAD_FMT " to " NIPQUAD_FMT "\n", | 125 | seq_printf(m, " from %pI4 to %pI4\n", |
126 | NIPQUAD(inet->inet_saddr), NIPQUAD(inet->inet_daddr)); | 126 | &inet->inet_saddr, &inet->inet_daddr); |
127 | if (tunnel->encap == L2TP_ENCAPTYPE_UDP) | 127 | if (tunnel->encap == L2TP_ENCAPTYPE_UDP) |
128 | seq_printf(m, " source port %hu, dest port %hu\n", | 128 | seq_printf(m, " source port %hu, dest port %hu\n", |
129 | ntohs(inet->inet_sport), ntohs(inet->inet_dport)); | 129 | ntohs(inet->inet_sport), ntohs(inet->inet_dport)); |