From: Stephen Hemminger Date: Tue, 29 May 2007 20:24:51 +0000 (-0700) Subject: [TCP] tcp_probe: use GCC printf attribute X-Git-Tag: v2.6.22-rc4~70^2~4 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=67403754bceda484a62a697878ff20a0e8d3aae6;p=safe%2Fjmp%2Flinux-2.6 [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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index 1b72c55..760165a 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.