From: Eric Leblond Date: Tue, 31 Dec 2013 14:09:10 +0000 (+0100) Subject: capture: display exit stats at default verbosity X-Git-Tag: suricata-2.0rc1~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afbb2eb32b40e51496bbbd100466d02735f86485;p=thirdparty%2Fsuricata.git capture: display exit stats at default verbosity This patch updates capture modes not using LiveDecice counters to display per-thread exit statistics with default verbosity. --- diff --git a/src/source-ipfw.c b/src/source-ipfw.c index b6d2278e94..3ec37787e3 100644 --- a/src/source-ipfw.c +++ b/src/source-ipfw.c @@ -393,7 +393,7 @@ void ReceiveIPFWThreadExitStats(ThreadVars *tv, void *data) SCEnter(); - SCLogInfo("(%s) Packets %" PRIu32 ", bytes %" PRIu64 "", tv->name, ptv->pkts, ptv->bytes); + SCLogNotice("(%s) Packets %" PRIu32 ", bytes %" PRIu64 "", tv->name, ptv->pkts, ptv->bytes); SCReturn; } diff --git a/src/source-napatech.c b/src/source-napatech.c index 172e7f95e5..5630863960 100644 --- a/src/source-napatech.c +++ b/src/source-napatech.c @@ -317,7 +317,7 @@ void NapatechStreamThreadExitStats(ThreadVars *tv, void *data) if (ntv->drops > 0) percent = (((double) ntv->drops) / (ntv->pkts+ntv->drops)) * 100; - SCLogInfo("Stream: %lu; Packets: %"PRIu64"; Drops: %"PRIu64" (%5.2f%%); Bytes: %"PRIu64, ntv->stream_id, ntv->pkts, ntv->drops, percent, ntv->bytes); + SCLogNotice("Stream: %lu; Packets: %"PRIu64"; Drops: %"PRIu64" (%5.2f%%); Bytes: %"PRIu64, ntv->stream_id, ntv->pkts, ntv->drops, percent, ntv->bytes); } /** diff --git a/src/source-nfq.c b/src/source-nfq.c index b1deefc3c8..4e3b73f442 100644 --- a/src/source-nfq.c +++ b/src/source-nfq.c @@ -1000,9 +1000,9 @@ void ReceiveNFQThreadExitStats(ThreadVars *tv, void *data) { NFQThreadVars *ntv = (NFQThreadVars *)data; NFQQueueVars *nq = NFQGetQueue(ntv->nfq_index); #ifdef COUNTERS - SCLogInfo("(%s) Pkts %" PRIu32 ", Bytes %" PRIu64 ", Errors %" PRIu32 "", + SCLogNotice("(%s) Pkts %" PRIu32 ", Bytes %" PRIu64 ", Errors %" PRIu32 "", tv->name, nq->pkts, nq->bytes, nq->errs); - SCLogInfo("Pkts accepted %"PRIu32", dropped %"PRIu32", replaced %"PRIu32, + SCLogNotice("Pkts accepted %"PRIu32", dropped %"PRIu32", replaced %"PRIu32, nq->accepted, nq->dropped, nq->replaced); #endif } diff --git a/src/source-pcap-file.c b/src/source-pcap-file.c index 004efac06e..8c7a4637be 100644 --- a/src/source-pcap-file.c +++ b/src/source-pcap-file.c @@ -365,7 +365,7 @@ void ReceivePcapFileThreadExitStats(ThreadVars *tv, void *data) { SCLogInfo("1/%" PRIu64 "th of packets have an invalid checksum", chrate); } - SCLogInfo("Pcap-file module read %" PRIu32 " packets, %" PRIu64 " bytes", ptv->pkts, ptv->bytes); + SCLogNotice("Pcap-file module read %" PRIu32 " packets, %" PRIu64 " bytes", ptv->pkts, ptv->bytes); return; }