From: Victor Julien Date: Thu, 1 Dec 2022 11:48:21 +0000 (+0100) Subject: device: cleanup stats print X-Git-Tag: suricata-7.0.0-rc1~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ccfa9b9a6ffff41a60d0092810179b7869b494c;p=thirdparty%2Fsuricata.git device: cleanup stats print --- diff --git a/src/util-device.c b/src/util-device.c index 89988c748a..708df3def3 100644 --- a/src/util-device.c +++ b/src/util-device.c @@ -353,7 +353,7 @@ int LiveDeviceListClean() TAILQ_FOREACH_SAFE(pd, &live_devices, next, tpd) { if (live_devices_stats) { - SCLogNotice("Stats for '%s': pkts: %" PRIu64 ", drop: %" PRIu64 + SCLogNotice("%s: packets: %" PRIu64 ", drops: %" PRIu64 " (%.2f%%), invalid chksum: %" PRIu64, pd->dev, SC_ATOMIC_GET(pd->pkts), SC_ATOMIC_GET(pd->drop), 100 * ((double)SC_ATOMIC_GET(pd->drop)) / (double)SC_ATOMIC_GET(pd->pkts),