From e513602eb85a742924abe5b60b5140a87ca86acb Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 13 Jul 2013 16:11:30 +0200 Subject: ring_rx: fix format string sparse warning Found by sparse: ring_rx.c:155:44: warning: Unknown escape '%' Signed-off-by: Daniel Borkmann --- ring_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ring_rx.c') diff --git a/ring_rx.c b/ring_rx.c index 96101be..3c701da 100644 --- a/ring_rx.c +++ b/ring_rx.c @@ -152,7 +152,7 @@ void sock_rx_net_stats(int sock, unsigned long seen) printf("\r%12ld packets passed filter\n", packets - drops); printf("\r%12ld packets failed filter (out of space)\n", drops); if (stats.k3.tp_packets > 0) - printf("\r%12.4lf%\% packet droprate\n", + printf("\r%12.4lf%% packet droprate\n", (1.0 * drops / packets) * 100.0); } } -- cgit v1.2.3-54-g00ecf