From: Victor Julien Date: Fri, 3 Jun 2016 07:32:37 +0000 (+0200) Subject: netmap: output cleanup X-Git-Tag: suricata-3.1RC1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2beb39469b94ccf033e5e936ba6453fe4650c579;p=thirdparty%2Fsuricata.git netmap: output cleanup --- diff --git a/src/runmode-netmap.c b/src/runmode-netmap.c index fcd2a0bd70..d568b4585c 100644 --- a/src/runmode-netmap.c +++ b/src/runmode-netmap.c @@ -267,7 +267,7 @@ finalize: } SC_ATOMIC_RESET(aconf->ref); (void) SC_ATOMIC_ADD(aconf->ref, aconf->threads); - SCLogInfo("Using %d threads for interface %s", aconf->threads, + SCLogPerf("Using %d threads for interface %s", aconf->threads, aconf->iface_name); return aconf; diff --git a/src/source-netmap.c b/src/source-netmap.c index 096e7594bb..bf8eb212ca 100644 --- a/src/source-netmap.c +++ b/src/source-netmap.c @@ -725,7 +725,7 @@ static TmEcode ReceiveNetmapThreadInit(ThreadVars *tv, void *initdata, void **da if ((aconf->copy_mode != NETMAP_COPY_MODE_NONE) && active_runmode && !strcmp("workers", active_runmode)) { ntv->flags |= NETMAP_FLAG_ZERO_COPY; - SCLogInfo("Enabling zero copy mode for %s->%s", + SCLogPerf("Enabling zero copy mode for %s->%s", aconf->iface_name, aconf->out_iface_name); } else { uint16_t ring_size = ntv->ifsrc->rings[0].rx->num_slots; @@ -739,7 +739,7 @@ static TmEcode ReceiveNetmapThreadInit(ThreadVars *tv, void *initdata, void **da } if (aconf->bpf_filter) { - SCLogInfo("Using BPF '%s' on iface '%s'", + SCLogConfig("Using BPF '%s' on iface '%s'", aconf->bpf_filter, ntv->ifsrc->ifname); if (pcap_compile_nopcap(default_packet_size, /* snaplen_arg */ LINKTYPE_ETHERNET, /* linktype_arg */ @@ -1054,7 +1054,7 @@ static void ReceiveNetmapThreadExitStats(ThreadVars *tv, void *data) NetmapThreadVars *ntv = (NetmapThreadVars *)data; NetmapDumpCounters(ntv); - SCLogInfo("(%s) Kernel: Packets %" PRIu64 ", dropped %" PRIu64 ", bytes %" PRIu64 "", + SCLogPerf("(%s) Kernel: Packets %" PRIu64 ", dropped %" PRIu64 ", bytes %" PRIu64 "", tv->name, StatsGetLocalCounterValue(tv, ntv->capture_kernel_packets), StatsGetLocalCounterValue(tv, ntv->capture_kernel_drops),