]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
afpacket: fix compilation in debug mode.
authorVictor Julien <victor@inliniac.net>
Fri, 29 Jun 2012 11:15:46 +0000 (13:15 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 29 Jun 2012 11:15:46 +0000 (13:15 +0200)
src/source-af-packet.c

index 36956b6fac6eba339c4f12138af87a94660422e8..20062ee35e688cc27fc49cde277d802acce982e2 100644 (file)
@@ -255,7 +255,7 @@ static inline void AFPDumpCounters(AFPThreadVars *ptv, int forced)
         if (getsockopt(ptv->socket, SOL_PACKET, PACKET_STATISTICS,
                     &kstats, &len) > -1) {
             SCLogDebug("(%s) Kernel: Packets %" PRIu32 ", dropped %" PRIu32 "",
-                    tv->name,
+                    ptv->tv->name,
                     kstats.tp_packets, kstats.tp_drops);
             SCPerfCounterAddUI64(ptv->capture_kernel_packets, ptv->tv->sc_perf_pca, kstats.tp_packets);
             SCPerfCounterAddUI64(ptv->capture_kernel_drops, ptv->tv->sc_perf_pca, kstats.tp_drops);