Skip to content

Commit e3b7748

Browse files
authored
Remove fprintf causing log spam (#669)
Since #521, prepare_pkts may be called on every call, not just on startup. This means that the log it prints to stderr is very visible and may cause performance problems. This commit removes it.
1 parent 1126a8b commit e3b7748

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Bugs fixed in 3.7.2
2+
===================
3+
4+
- Remove excessive log
5+
16
Bugs fixed in 3.7.1
27
=======================
38

src/prepare_pcap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ int prepare_pkts(const char* file, pcap_pkts* pkts)
282282
pkts->max = pkts->pkts + n_pkts;
283283
pkts->max_length = max_length;
284284
pkts->base = base;
285-
fprintf(stderr, "In pcap %s, npkts %d\nmax pkt length %lu\nbase port %d\n", file, n_pkts, max_length, base);
286285
pcap_close(pcap);
287286

288287
return 0;

0 commit comments

Comments
 (0)