]> The Tcpdump Group git mirrors - libpcap/commitdiff
"#if 0" out debug printouts.
authorGuy Harris <[email protected]>
Mon, 7 May 2018 02:14:29 +0000 (19:14 -0700)
committerGuy Harris <[email protected]>
Mon, 7 May 2018 02:14:29 +0000 (19:14 -0700)
Hiding it inside "if (0)" causes "code not reachable" warnings.

pcap-netmap.c

index 5be943b444902d94387f640cc758f3ccca319501..f1505633fcaa3e97cb56d82aa73da6e7949e2f9c 100644 (file)
@@ -236,10 +236,11 @@ pcap_netmap_activate(pcap_t *p)
                pcap_cleanup_live_common(p);
                return (PCAP_ERROR);
        }
-       if (0)
-           fprintf(stderr, "%s device %s priv %p fd %d ports %d..%d\n",
-               __FUNCTION__, p->opt.device, d, d->fd,
-               d->first_rx_ring, d->last_rx_ring);
+#if 0
+       fprintf(stderr, "%s device %s priv %p fd %d ports %d..%d\n",
+           __FUNCTION__, p->opt.device, d, d->fd,
+           d->first_rx_ring, d->last_rx_ring);
+#endif
        pn->d = d;
        p->fd = d->fd;