]> The Tcpdump Group git mirrors - libpcap/commitdiff
DWORD is unsigned; print it as such.
authorGuy Harris <[email protected]>
Mon, 8 Feb 2021 09:40:50 +0000 (01:40 -0800)
committerGuy Harris <[email protected]>
Mon, 8 Feb 2021 21:16:41 +0000 (13:16 -0800)
(cherry picked from commit 7b4a34ccd534a8a48790b2134be44e69a2698882)

pcap-npf.c

index f205674808db4d2c4ac890d757f917de190abdde..508f0cbe3d2b9395484e1e3185bd94cecf4bba40 100644 (file)
@@ -581,7 +581,7 @@ pcap_read_npf(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
                                 * other than PCAP_ERROR or PCAP_ERROR_BREAK.
                                 */
                                snprintf(p->errbuf, PCAP_ERRBUF_SIZE,
-                                   "The interface disappeared (error code %d)",
+                                   "The interface disappeared (error code %u)",
                                    errcode);
                        } else {
                                pcap_fmt_errmsg_for_win32_err(p->errbuf,