diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-11-29 13:17:10 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-12-02 03:54:42 +0100 |
commit | 06559048e76343211618ddea02d6739ca578b775 (patch) | |
tree | 6a2dc46dc42e7bd916bd86f701aa491aa898c946 /pcap.c | |
parent | 4117bd94f967709074ff1f310d7334ab1876ddae (diff) | |
download | passt-06559048e76343211618ddea02d6739ca578b775.tar passt-06559048e76343211618ddea02d6739ca578b775.tar.gz passt-06559048e76343211618ddea02d6739ca578b775.tar.bz2 passt-06559048e76343211618ddea02d6739ca578b775.tar.lz passt-06559048e76343211618ddea02d6739ca578b775.tar.xz passt-06559048e76343211618ddea02d6739ca578b775.tar.zst passt-06559048e76343211618ddea02d6739ca578b775.zip |
treewide: Use 'z' length modifier for size_t/ssize_t conversions
Types size_t and ssize_t are not necessarily long, it depends on the
architecture.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'pcap.c')
-rw-r--r-- | pcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -101,7 +101,7 @@ void pcap(const char *pkt, size_t len) gettimeofday(&tv, NULL); if (pcap_frame(pkt, len, &tv) != 0) - debug("Cannot log packet, length %lu", len); + debug("Cannot log packet, length %zu", len); } /** @@ -123,7 +123,7 @@ void pcap_multiple(const struct iovec *iov, unsigned int n, size_t offset) for (i = 0; i < n; i++) { if (pcap_frame((char *)iov[i].iov_base + offset, iov[i].iov_len - offset, &tv) != 0) { - debug("Cannot log packet, length %lu", + debug("Cannot log packet, length %zu", iov->iov_len - offset); return; } |