[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: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2006-06-05 17:59:20 -07:00
parent 738980ffa6
commit 70df2311ee
1 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,9 @@ static void printl(const char *fmt, ...)
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);
va_end(args);