tap: Fix format specifier in tap4_is_fragment() warning
Spotted by Coverity, relatively harmless.
Fixes: e01759e2fa
("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>
This commit is contained in:
parent
da0aeb9080
commit
5f1fcfffe4
1 changed files with 2 additions and 1 deletions
3
tap.c
3
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue