From 0b0cbec470a283431d9be9ccd3b664b743326729 Mon Sep 17 00:00:00 2001 From: narspt Date: Sat, 2 Apr 2022 22:51:23 +0100 Subject: [PATCH] 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... --- ambed/cvocodecchannel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ambed/cvocodecchannel.cpp b/ambed/cvocodecchannel.cpp index 7a10d41..29a6fbd 100644 --- a/ambed/cvocodecchannel.cpp +++ b/ambed/cvocodecchannel.cpp @@ -62,8 +62,8 @@ bool CVocodecChannel::Open(void) ok = true; PurgeAllQueues(); std::cout << "Vocodec channel " << - m_InterfaceIn->GetName() << ":" << (int)m_iChannelIn << " -> " << - m_InterfaceOut->GetName() << ":" << (int)m_iChannelOut << " open" << std::endl; + m_InterfaceIn->GetName() << ":" << m_InterfaceIn->GetSerial() << ":" << (int)m_iChannelIn << " -> " << + m_InterfaceOut->GetName() << ":" << m_InterfaceOut->GetSerial() << ":" << (int)m_iChannelOut << " open" << std::endl; } return ok; } @@ -75,8 +75,8 @@ void CVocodecChannel::Close(void) m_bOpen = false; PurgeAllQueues(); std::cout << "Vocodec channel " << - m_InterfaceIn->GetName() << ":" << (int)m_iChannelIn << " -> " << - m_InterfaceOut->GetName() << ":" << (int)m_iChannelOut << " closed" << std::endl; + m_InterfaceIn->GetName() << ":" << m_InterfaceIn->GetSerial() << ":" << (int)m_iChannelIn << " -> " << + m_InterfaceOut->GetName() << ":" << m_InterfaceOut->GetSerial() << ":" << (int)m_iChannelOut << " closed" << std::endl; } }