diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-05-06 19:14:29 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-05-06 19:14:29 -0700 |
commit | 44c022be2d653987552155e00624417a94abe702 (patch) | |
tree | c49f75af2f15a8673883cff1c02f57c9559a5eea /pcap-netmap.c | |
parent | fdff1c8a7393bc368e45a42682178f0e7dc1fe55 (diff) |
"#if 0" out debug printouts.
Hiding it inside "if (0)" causes "code not reachable" warnings.
Diffstat (limited to 'pcap-netmap.c')
-rw-r--r-- | pcap-netmap.c | 9 |
1 files changed, 5 insertions, 4 deletions
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; |