Skip to content

Commit

Permalink
Remove fprintf causing log spam
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rkday committed Nov 16, 2023
1 parent 1126a8b commit defe68f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Bugs fixed in 3.7.2
===================

- Remove excessive log

Bugs fixed in 3.7.1
=======================

Expand Down
1 change: 0 additions & 1 deletion src/prepare_pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ int prepare_pkts(const char* file, pcap_pkts* pkts)
pkts->max = pkts->pkts + n_pkts;
pkts->max_length = max_length;
pkts->base = base;
fprintf(stderr, "In pcap %s, npkts %d\nmax pkt length %lu\nbase port %d\n", file, n_pkts, max_length, base);
pcap_close(pcap);

return 0;
Expand Down

0 comments on commit defe68f

Please sign in to comment.