From: Guy Harris Date: Sat, 20 Feb 2021 19:49:12 +0000 (-0800) Subject: NPF: use %lu for all ULONGs. X-Git-Tag: libpcap-1.10.1~80 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/bc3de5fe9d46e62900c1d8157c4249083b7f0bc2 NPF: use %lu for all ULONGs. Found by Gisle Vanem using clang-cl. (cherry picked from commit 79e718f1a23452becd725fa727ea60489c3a5577) --- diff --git a/pcap-npf.c b/pcap-npf.c index 5a2e2ace..215efc9d 100644 --- a/pcap-npf.c +++ b/pcap-npf.c @@ -1536,7 +1536,7 @@ pcap_create_interface(const char *device _U_, char *ebuf) } if (modes[0] != num_ts_modes) { snprintf(ebuf, PCAP_ERRBUF_SIZE, - "First PacketGetTimestampModes() call gives %lu modes, second call gives %u modes", + "First PacketGetTimestampModes() call gives %lu modes, second call gives %lu modes", num_ts_modes, modes[0]); free(modes); pcap_close(p);