Skip to content

Commit

Permalink
[TCP] tcp_probe: use GCC printf attribute
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed May 31, 2007
1 parent 6331349 commit 6740375
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/ipv4/tcp_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6740375

Please sign in to comment.