1
0
Fork 0

[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>
hifive-unleashed-5.1
Stephen Hemminger 2007-05-29 13:24:51 -07:00 committed by David S. Miller
parent 63313494c4
commit 67403754bc
1 changed files with 2 additions and 1 deletions

View File

@ -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.