diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2007-06-05 03:19:24 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-06-07 16:40:09 -0400 |
commit | 14a49e1fd2bb91ba2bf0e1f06711b6dbc21de02d (patch) | |
tree | 96f666a60b8de2e313f1cbc192b3f06cebbbc64e | |
parent | 274707cff9810b784c548ed169298617a1bc3528 (diff) |
[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>
-rw-r--r-- | net/ipv4/tcp_probe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index 760165a0800c..d9323dfff826 100644 --- a/net/ipv4/tcp_probe.c +++ b/net/ipv4/tcp_probe.c | |||
@@ -63,6 +63,9 @@ struct { | |||
63 | * FIXME: causes an extra copy | 63 | * FIXME: causes an extra copy |
64 | */ | 64 | */ |
65 | static void printl(const char *fmt, ...) | 65 | static void printl(const char *fmt, ...) |
66 | __attribute__ ((format (printf, 1, 2))); | ||
67 | |||
68 | static void printl(const char *fmt, ...) | ||
66 | { | 69 | { |
67 | va_list args; | 70 | va_list args; |
68 | int len; | 71 | int len; |
@@ -80,8 +83,7 @@ static void printl(const char *fmt, ...) | |||
80 | 83 | ||
81 | kfifo_put(tcpw.fifo, tbuf, len); | 84 | kfifo_put(tcpw.fifo, tbuf, len); |
82 | wake_up(&tcpw.wait); | 85 | wake_up(&tcpw.wait); |
83 | } __attribute__ ((format (printf, 1, 2))); | 86 | } |
84 | |||
85 | 87 | ||
86 | /* | 88 | /* |
87 | * Hook inserted to be called before each receive packet. | 89 | * Hook inserted to be called before each receive packet. |