]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-linux.c
tp_mac and tp_snaplen are unsigned; print them with %u, not %d.
[libpcap] / pcap-linux.c
index 3f7073e22d0380ca79da12aef8a6a6b22ee8f033..fdc765fbf86947456a2537074c060fd96122095d 100644 (file)
@@ -4242,7 +4242,7 @@ static int pcap_handle_packet_mmap(
        if (tp_mac + tp_snaplen > handle->bufsize) {
                snprintf(handle->errbuf, PCAP_ERRBUF_SIZE,
                        "corrupted frame on kernel ring mac "
-                       "offset %d + caplen %d > frame len %d",
+                       "offset %u + caplen %u > frame len %d",
                        tp_mac, tp_snaplen, handle->bufsize);
                return -1;
        }