From: Stephen Hemminger Date: Tue, 29 May 2007 20:24:51 +0000 (-0700) Subject: [TCP] tcp_probe: use GCC printf attribute X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67403754bceda484a62a697878ff20a0e8d3aae6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 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.