diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-04-04 23:35:32 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-04-05 18:47:04 +0200 |
commit | dbd0a7035c9a7a59f17d1312063ffa7fc3cd6860 (patch) | |
tree | 41be6a60791a2f9f9b9fce73a9d7e81841765861 /pcap.c | |
parent | 54f8bf82460c70e6159cebcecd200fcb450d3674 (diff) | |
download | passt-dbd0a7035c9a7a59f17d1312063ffa7fc3cd6860.tar passt-dbd0a7035c9a7a59f17d1312063ffa7fc3cd6860.tar.gz passt-dbd0a7035c9a7a59f17d1312063ffa7fc3cd6860.tar.bz2 passt-dbd0a7035c9a7a59f17d1312063ffa7fc3cd6860.tar.lz passt-dbd0a7035c9a7a59f17d1312063ffa7fc3cd6860.tar.xz passt-dbd0a7035c9a7a59f17d1312063ffa7fc3cd6860.tar.zst passt-dbd0a7035c9a7a59f17d1312063ffa7fc3cd6860.zip |
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>
Diffstat (limited to 'pcap.c')
-rw-r--r-- | pcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } /** |