Commit be3e4581 authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller

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: default avatarDaniel Borkmann <dborkman@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ee1bec9b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment