projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6331349
)
[TCP] tcp_probe: use GCC printf attribute
author
Stephen Hemminger
<shemminger@linux-foundation.org>
Tue, 29 May 2007 20:24:51 +0000
(13:24 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 31 May 2007 08:23:37 +0000
(
01:23
-0700)
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>
net/ipv4/tcp_probe.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_probe.c
b/net/ipv4/tcp_probe.c
index
1b72c55
..
760165a
100644
(file)
--- 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.