]> The Tcpdump Group git mirrors - libpcap/commitdiff
Use "%u", not "%lu", to print "u_int" variables.
authorguy <guy>
Fri, 31 May 2002 10:59:43 +0000 (10:59 +0000)
committerguy <guy>
Fri, 31 May 2002 10:59:43 +0000 (10:59 +0000)
pcap-bpf.c

index 75e3c1ec3ed9c7fdd98ce7d76c104ab1d1a777ba..0ee7325bce1e367fc344d16d0f436c9234c71102 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-bpf.c,v 1.48 2001-12-10 07:14:14 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-bpf.c,v 1.49 2002-05-31 10:59:43 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -295,7 +295,7 @@ pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
                /*
                 * We don't know what to map this to yet.
                 */
-               snprintf(ebuf, PCAP_ERRBUF_SIZE, "unknown interface type %lu",
+               snprintf(ebuf, PCAP_ERRBUF_SIZE, "unknown interface type %u",
                    v);
                goto bad;
        }