aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2023-08-16 08:20:17 +0200
committerStefano Brivio <sbrivio@redhat.com>2023-08-16 10:46:07 +0200
commit5f1fcfffe45f943fdb2dfd530f15185e9f1e416f (patch)
treec0a587b477c9f29450cf16f7f69edea78b9d50d2
parentda0aeb9080c9d2e39b2ff600a9b2b03046ac219d (diff)
downloadpasst-5f1fcfffe45f943fdb2dfd530f15185e9f1e416f.tar
passt-5f1fcfffe45f943fdb2dfd530f15185e9f1e416f.tar.gz
passt-5f1fcfffe45f943fdb2dfd530f15185e9f1e416f.tar.bz2
passt-5f1fcfffe45f943fdb2dfd530f15185e9f1e416f.tar.lz
passt-5f1fcfffe45f943fdb2dfd530f15185e9f1e416f.tar.xz
passt-5f1fcfffe45f943fdb2dfd530f15185e9f1e416f.tar.zst
passt-5f1fcfffe45f943fdb2dfd530f15185e9f1e416f.zip
tap: Fix format specifier in tap4_is_fragment() warning
Spotted by Coverity, relatively harmless. Fixes: e01759e2fab0 ("tap: Explicitly drop IPv4 fragments, and give a warning") Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--tap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tap.c b/tap.c
index a6f8692..760deb7 100644
--- a/tap.c
+++ b/tap.c
@@ -561,7 +561,8 @@ static bool tap4_is_fragment(const struct iphdr *iph,
num_dropped++;
if (now->tv_sec - last_message > FRAGMENT_MSG_RATE) {
- warn("Can't process IPv4 fragments (%lu dropped)", num_dropped);
+ warn("Can't process IPv4 fragments (%u dropped)",
+ num_dropped);
last_message = now->tv_sec;
num_dropped = 0;
}