mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-07 23:43:49 +00:00
Add optional names for each network for use in the log,
This commit is contained in:
parent
49254bc7c9
commit
367116bdf4
19 changed files with 175 additions and 89 deletions
|
|
@ -24,7 +24,7 @@
|
|||
#include <cstdio>
|
||||
#include <cassert>
|
||||
|
||||
CPassAllTG::CPassAllTG(const char* name, unsigned int slot) :
|
||||
CPassAllTG::CPassAllTG(const std::string& name, unsigned int slot) :
|
||||
m_name(name),
|
||||
m_slot(slot)
|
||||
{
|
||||
|
|
@ -43,7 +43,7 @@ bool CPassAllTG::process(CDMRData& data, bool trace)
|
|||
bool ret = (flco == FLCO_GROUP && slotNo == m_slot);
|
||||
|
||||
if (trace)
|
||||
LogDebug("Rule Trace,\tPassAllTG %s Slot=%u: %s", m_name, m_slot, ret ? "matched" : "not matched");
|
||||
LogDebug("Rule Trace,\tPassAllTG %s Slot=%u: %s", m_name.c_str(), m_slot, ret ? "matched" : "not matched");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue