summaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-05-01 04:59:23 +0200
committerDavid S. Miller <davem@davemloft.net>2013-05-01 21:04:10 +0200
commitbe3e45810bb1ee0bdfa93f6b9532d8c451e50f48 (patch)
treee3b0459c58392a649de5703111c9a9fa516eec21 /net/sctp
parentnetlink: kconfig: move mmap i/o into netlink kconfig (diff)
downloadlinux-be3e45810bb1ee0bdfa93f6b9532d8c451e50f48.tar.xz
linux-be3e45810bb1ee0bdfa93f6b9532d8c451e50f48.zip
net: sctp: attribute printl with __printf for gcc fmt checks
Let GCC check for format string errors in sctp's probe printl function. This patch fixes the warning when compiled with W=1: net/sctp/probe.c:73:2: warning: function might be possible candidate for 'gnu_printf' format attribute [-Wmissing-format-attribute] Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/probe.c b/net/sctp/probe.c
index ad0dba870341..e62c22535be4 100644
--- a/net/sctp/probe.c
+++ b/net/sctp/probe.c
@@ -63,7 +63,7 @@ static struct {
struct timespec tstart;
} sctpw;
-static void printl(const char *fmt, ...)
+static __printf(1, 2) void printl(const char *fmt, ...)
{
va_list args;
int len;