DEV9: Only log packets in debug mode

This commit is contained in:
TheLastRar authored and refractionpcsx2 committed 2021-02-17 20:06:54 +00:00
1 parent 33b6cbc2a9
commit 82493343fa
1 file changed
+3 -1
+3 -1
View File
@@ -36,7 +36,7 @@
#endif
pcap_t* adhandle;
pcap_dumper_t* dump_pcap;
pcap_dumper_t* dump_pcap = nullptr;
char errbuf[PCAP_ERRBUF_SIZE];
mac_address broadcast_mac = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
@@ -163,8 +163,10 @@ int pcap_io_init(char* adapter, mac_address virtual_mac)
return -1;
}
#ifdef DEBUG
const std::string plfile(s_strLogPath + "/pkt_log.pcap");
dump_pcap = pcap_dump_open(adhandle, plfile.c_str());
#endif
pcap_io_running = 1;
Console.WriteLn("Adapter Ok.");