Add optional names for each network for use in the log,

This commit is contained in:
Jonathan Naylor
2017-08-01 21:51:22 +01:00
parent 49254bc7c9
commit 367116bdf4
19 changed files with 175 additions and 89 deletions

View File

@@ -24,7 +24,7 @@
#include <cstdio>
#include <cassert>
CPassAllPC::CPassAllPC(const char* name, unsigned int slot) :
CPassAllPC::CPassAllPC(const std::string& name, unsigned int slot) :
m_name(name),
m_slot(slot)
{
@@ -43,7 +43,7 @@ bool CPassAllPC::process(CDMRData& data, bool trace)
bool ret = (flco == FLCO_USER_USER && slotNo == m_slot);
if (trace)
LogDebug("Rule Trace,\tPassAllPC %s Slot=%u: %s", m_name, m_slot, ret ? "matched" : "not matched");
LogDebug("Rule Trace,\tPassAllPC %s Slot=%u: %s", m_name.c_str(), m_slot, ret ? "matched" : "not matched");
return ret;
}