From e3b7748d7be7f32dcaeeed5ccd241a342635ac23 Mon Sep 17 00:00:00 2001 From: Rob Day Date: Thu, 16 Nov 2023 22:50:19 +0000 Subject: [PATCH] Remove fprintf causing log spam (#669) Since https://github.com/SIPp/sipp/pull/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. --- CHANGES.md | 5 +++++ src/prepare_pcap.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 35a9c5f0d..72102ae1c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +Bugs fixed in 3.7.2 +=================== + +- Remove excessive log + Bugs fixed in 3.7.1 ======================= diff --git a/src/prepare_pcap.c b/src/prepare_pcap.c index f5bd3b274..d2488a7a7 100644 --- a/src/prepare_pcap.c +++ b/src/prepare_pcap.c @@ -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;