diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-02-10 02:17:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-10 02:17:51 -0500 |
commit | 0efeaa335ce494680d1884f267eed7642dee3ca8 (patch) | |
tree | fa39e28d361c0859ea5b84e16f0c70805172a28b /drivers | |
parent | fefa864530766d8da2b8606235387c5173fb2309 (diff) |
pppol2tp: fix printk warnings
drivers/net/pppol2tp.c: In function `pppol2tp_seq_tunnel_show':
drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 4)
drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 5)
drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 6)
drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 7)
drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 8)
drivers/net/pppol2tp.c:2295: warning: long long unsigned int format, __u64 arg (arg 9)
drivers/net/pppol2tp.c: In function `pppol2tp_seq_session_show':
drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 5)
drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 6)
drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 7)
drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 8)
drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 9)
drivers/net/pppol2tp.c:2328: warning: long long unsigned int format, __u64 arg (arg 10)
Not all platforms implement u64 with unsigned long long. eg: powerpc.
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/pppol2tp.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index 5aa0a8089694..e0b072d9fdb7 100644 --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c | |||
@@ -2289,10 +2289,12 @@ static void pppol2tp_seq_tunnel_show(struct seq_file *m, void *v) | |||
2289 | atomic_read(&tunnel->ref_count) - 1); | 2289 | atomic_read(&tunnel->ref_count) - 1); |
2290 | seq_printf(m, " %08x %llu/%llu/%llu %llu/%llu/%llu\n", | 2290 | seq_printf(m, " %08x %llu/%llu/%llu %llu/%llu/%llu\n", |
2291 | tunnel->debug, | 2291 | tunnel->debug, |
2292 | tunnel->stats.tx_packets, tunnel->stats.tx_bytes, | 2292 | (unsigned long long)tunnel->stats.tx_packets, |
2293 | tunnel->stats.tx_errors, | 2293 | (unsigned long long)tunnel->stats.tx_bytes, |
2294 | tunnel->stats.rx_packets, tunnel->stats.rx_bytes, | 2294 | (unsigned long long)tunnel->stats.tx_errors, |
2295 | tunnel->stats.rx_errors); | 2295 | (unsigned long long)tunnel->stats.rx_packets, |
2296 | (unsigned long long)tunnel->stats.rx_bytes, | ||
2297 | (unsigned long long)tunnel->stats.rx_errors); | ||
2296 | } | 2298 | } |
2297 | 2299 | ||
2298 | static void pppol2tp_seq_session_show(struct seq_file *m, void *v) | 2300 | static void pppol2tp_seq_session_show(struct seq_file *m, void *v) |
@@ -2320,12 +2322,12 @@ static void pppol2tp_seq_session_show(struct seq_file *m, void *v) | |||
2320 | jiffies_to_msecs(session->reorder_timeout)); | 2322 | jiffies_to_msecs(session->reorder_timeout)); |
2321 | seq_printf(m, " %hu/%hu %llu/%llu/%llu %llu/%llu/%llu\n", | 2323 | seq_printf(m, " %hu/%hu %llu/%llu/%llu %llu/%llu/%llu\n", |
2322 | session->nr, session->ns, | 2324 | session->nr, session->ns, |
2323 | session->stats.tx_packets, | 2325 | (unsigned long long)session->stats.tx_packets, |
2324 | session->stats.tx_bytes, | 2326 | (unsigned long long)session->stats.tx_bytes, |
2325 | session->stats.tx_errors, | 2327 | (unsigned long long)session->stats.tx_errors, |
2326 | session->stats.rx_packets, | 2328 | (unsigned long long)session->stats.rx_packets, |
2327 | session->stats.rx_bytes, | 2329 | (unsigned long long)session->stats.rx_bytes, |
2328 | session->stats.rx_errors); | 2330 | (unsigned long long)session->stats.rx_errors); |
2329 | } | 2331 | } |
2330 | 2332 | ||
2331 | static int pppol2tp_seq_show(struct seq_file *m, void *v) | 2333 | static int pppol2tp_seq_show(struct seq_file *m, void *v) |