mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
[TCP] tcp_probe: Attach printf attribute properly to printl().
GCC doesn't like the way Stephen initially did it: net/ipv4/tcp_probe.c:83: warning: empty declaration Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
274707cff9
commit
14a49e1fd2
1 changed files with 4 additions and 2 deletions
|
@ -62,6 +62,9 @@ struct {
|
||||||
* Print to log with timestamps.
|
* Print to log with timestamps.
|
||||||
* FIXME: causes an extra copy
|
* FIXME: causes an extra copy
|
||||||
*/
|
*/
|
||||||
|
static void printl(const char *fmt, ...)
|
||||||
|
__attribute__ ((format (printf, 1, 2)));
|
||||||
|
|
||||||
static void printl(const char *fmt, ...)
|
static void printl(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
@ -80,8 +83,7 @@ static void printl(const char *fmt, ...)
|
||||||
|
|
||||||
kfifo_put(tcpw.fifo, tbuf, len);
|
kfifo_put(tcpw.fifo, tbuf, len);
|
||||||
wake_up(&tcpw.wait);
|
wake_up(&tcpw.wait);
|
||||||
} __attribute__ ((format (printf, 1, 2)));
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hook inserted to be called before each receive packet.
|
* Hook inserted to be called before each receive packet.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue