diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-13 16:11:30 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-13 16:20:14 +0200 |
commit | e513602eb85a742924abe5b60b5140a87ca86acb (patch) | |
tree | 3f87fcb8840b00805bc3433d79072ceb34ac8675 /ring_rx.c | |
parent | 3eaa4aaaf698779f4a644c197dbeb872c58d6dd5 (diff) |
ring_rx: fix format string sparse warning
Found by sparse:
ring_rx.c:155:44: warning: Unknown escape '%'
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'ring_rx.c')
-rw-r--r-- | ring_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |