Commit 70df2311 authored by David S. Miller's avatar David S. Miller

[TCP]: Fix compile warning in tcp_probe.c

The suseconds_t et al. are not necessarily any particular type on
every platform, so cast to unsigned long so that we can use one printf
format string and avoid warnings across the board
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 738980ff
...@@ -68,7 +68,9 @@ static void printl(const char *fmt, ...) ...@@ -68,7 +68,9 @@ static void printl(const char *fmt, ...)
now.tv_usec += 1000000; now.tv_usec += 1000000;
} }
len = sprintf(tbuf, "%lu.%06lu ", now.tv_sec, now.tv_usec); len = sprintf(tbuf, "%lu.%06lu ",
(unsigned long) now.tv_sec,
(unsigned long) now.tv_usec);
len += vscnprintf(tbuf+len, sizeof(tbuf)-len, fmt, args); len += vscnprintf(tbuf+len, sizeof(tbuf)-len, fmt, args);
va_end(args); va_end(args);
......
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