]> The Tcpdump Group git mirrors - libpcap/commitdiff
NPF: use %lu for all ULONGs.
authorGuy Harris <[email protected]>
Sat, 20 Feb 2021 19:49:12 +0000 (11:49 -0800)
committerGuy Harris <[email protected]>
Thu, 25 Feb 2021 18:59:35 +0000 (10:59 -0800)
Found by Gisle Vanem using clang-cl.

(cherry picked from commit 79e718f1a23452becd725fa727ea60489c3a5577)

pcap-npf.c

index 5a2e2ace0cef5b62c0b408026e0fe1c2a330d09b..215efc9df01f454e8903a5c81f561b43656f9b52 100644 (file)
@@ -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);