summaryrefslogtreecommitdiff
path: root/ring_rx.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:11:30 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-13 16:20:14 +0200
commite513602eb85a742924abe5b60b5140a87ca86acb (patch)
tree3f87fcb8840b00805bc3433d79072ceb34ac8675 /ring_rx.c
parent3eaa4aaaf698779f4a644c197dbeb872c58d6dd5 (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.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}