aboutgitcodebugslistschat
path: root/pcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap.c')
-rw-r--r--pcap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcap.c b/pcap.c
index 296bbb5..64beb34 100644
--- a/pcap.c
+++ b/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);
}
/**