diff --git a/net/sctp/probe.c b/net/sctp/probe.c
index ad0dba870341239f71c4827257be7248db26a964..e62c22535be424cc53311dfc5b8f4540faa47e59 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;