add device serial to vocodec open/close log msgs

this allows to identify what device is being used exactly, printing just the device name can't identify it if we have multiple similar devices...
This commit is contained in:
narspt 2022-04-02 22:51:23 +01:00 committed by GitHub
parent 3801ffdec5
commit 0b0cbec470
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,8 +62,8 @@ bool CVocodecChannel::Open(void)
ok = true; ok = true;
PurgeAllQueues(); PurgeAllQueues();
std::cout << "Vocodec channel " << std::cout << "Vocodec channel " <<
m_InterfaceIn->GetName() << ":" << (int)m_iChannelIn << " -> " << m_InterfaceIn->GetName() << ":" << m_InterfaceIn->GetSerial() << ":" << (int)m_iChannelIn << " -> " <<
m_InterfaceOut->GetName() << ":" << (int)m_iChannelOut << " open" << std::endl; m_InterfaceOut->GetName() << ":" << m_InterfaceOut->GetSerial() << ":" << (int)m_iChannelOut << " open" << std::endl;
} }
return ok; return ok;
} }
@ -75,8 +75,8 @@ void CVocodecChannel::Close(void)
m_bOpen = false; m_bOpen = false;
PurgeAllQueues(); PurgeAllQueues();
std::cout << "Vocodec channel " << std::cout << "Vocodec channel " <<
m_InterfaceIn->GetName() << ":" << (int)m_iChannelIn << " -> " << m_InterfaceIn->GetName() << ":" << m_InterfaceIn->GetSerial() << ":" << (int)m_iChannelIn << " -> " <<
m_InterfaceOut->GetName() << ":" << (int)m_iChannelOut << " closed" << std::endl; m_InterfaceOut->GetName() << ":" << m_InterfaceOut->GetSerial() << ":" << (int)m_iChannelOut << " closed" << std::endl;
} }
} }