]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[TCP]: Fix compile warning in tcp_probe.c
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 6 Jun 2006 00:59:20 +0000 (17:59 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 18 Jun 2006 04:29:35 +0000 (21:29 -0700)
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>
net/ipv4/tcp_probe.c

index be94d526c7cba5719b8e130f5545ea6b721dd353..d7d517a3a238b918862896e114e3ea0261f5652c 100644 (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);