mirror of
https://passt.top/passt
synced 2025-05-23 09:45:34 +02:00
treewide: Invalid type in argument to printf format specifier, CWE-686
Harmless except for two bad debugging prints. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
54f8bf8246
commit
dbd0a7035c
4 changed files with 32 additions and 32 deletions
6
pcap.c
6
pcap.c
|
@ -88,7 +88,7 @@ void pcap(const char *pkt, size_t len)
|
|||
h.caplen = h.len = len;
|
||||
|
||||
if (write(pcap_fd, &h, sizeof(h)) < 0 || write(pcap_fd, pkt, len) < 0)
|
||||
debug("Cannot log packet, length %u", len);
|
||||
debug("Cannot log packet, length %lu", len);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -123,7 +123,7 @@ void pcapm(const struct msghdr *mh)
|
|||
|
||||
return;
|
||||
fail:
|
||||
debug("Cannot log packet, length %u", iov->iov_len - 4);
|
||||
debug("Cannot log packet, length %lu", iov->iov_len - 4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -161,7 +161,7 @@ void pcapmm(const struct mmsghdr *mmh, unsigned int vlen)
|
|||
}
|
||||
return;
|
||||
fail:
|
||||
debug("Cannot log packet, length %u", iov->iov_len - 4);
|
||||
debug("Cannot log packet, length %lu", iov->iov_len - 4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue