aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_probe.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-14 07:09:00 -0400
committerDavid S. Miller <davem@davemloft.net>2008-04-14 07:09:00 -0400
commita7d632b6b4ad1c92746ed409e41f9dc571ec04e2 (patch)
tree90e6aa51a9df50aa4a437749e89356ab15a0ff5f /net/ipv4/tcp_probe.c
parent334f8b2afd9652e20f67ddee4fec483ed860425b (diff)
[IPV4]: Use NIPQUAD_FMT to format ipv4 addresses.
And use %u to format port. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_probe.c')
-rw-r--r--net/ipv4/tcp_probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c
index 87dd5bff315f..1c509592574a 100644
--- a/net/ipv4/tcp_probe.c
+++ b/net/ipv4/tcp_probe.c
@@ -153,7 +153,7 @@ static int tcpprobe_sprint(char *tbuf, int n)
153 = ktime_to_timespec(ktime_sub(p->tstamp, tcp_probe.start)); 153 = ktime_to_timespec(ktime_sub(p->tstamp, tcp_probe.start));
154 154
155 return snprintf(tbuf, n, 155 return snprintf(tbuf, n,
156 "%lu.%09lu %d.%d.%d.%d:%u %d.%d.%d.%d:%u" 156 "%lu.%09lu " NIPQUAD_FMT ":%u " NIPQUAD_FMT ":%u"
157 " %d %#x %#x %u %u %u %u\n", 157 " %d %#x %#x %u %u %u %u\n",
158 (unsigned long) tv.tv_sec, 158 (unsigned long) tv.tv_sec,
159 (unsigned long) tv.tv_nsec, 159 (unsigned long) tv.tv_nsec,