summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_probe.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-05-30 00:24:51 +0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-05-31 12:23:37 +0400
commit67403754bceda484a62a697878ff20a0e8d3aae6 (patch)
tree4edee7f57bdbf3d1d9edc182bd8c365dd0484839 /net/ipv4/tcp_probe.c
parent63313494c4419bd5d60b4f3ef8970a98525ac9d3 (diff)
downloadlinux-67403754bceda484a62a697878ff20a0e8d3aae6.tar.xz
[TCP] tcp_probe: use GCC printf attribute
The function in tcp_probe is printf like, use GCC to check the args. Sighed-off-by: Stephen Hemminger <shemminger@linux-foundation.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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c
index 1b72c55d336f..760165a0800c 100644
--- a/net/ipv4/tcp_probe.c
+++ b/net/ipv4/tcp_probe.c
@@ -80,7 +80,8 @@ static void printl(const char *fmt, ...)
kfifo_put(tcpw.fifo, tbuf, len);
wake_up(&tcpw.wait);
-}
+} __attribute__ ((format (printf, 1, 2)));
+
/*
* Hook inserted to be called before each receive packet.