From: Guy Harris Date: Mon, 7 May 2018 02:14:29 +0000 (-0700) Subject: "#if 0" out debug printouts. X-Git-Tag: libpcap-1.9-bp~34 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/44c022be2d653987552155e00624417a94abe702 "#if 0" out debug printouts. Hiding it inside "if (0)" causes "code not reachable" warnings. --- diff --git a/pcap-netmap.c b/pcap-netmap.c index 5be943b4..f1505633 100644 --- a/pcap-netmap.c +++ b/pcap-netmap.c @@ -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;