From: Lars Op den Kamp Date: Mon, 18 Mar 2013 15:05:25 +0000 (+0100) Subject: use CCECTypeUtils::ToString(const cec_command& command) in CCECProcessor X-Git-Tag: upstream/2.2.0~1^2~4^2~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=31e9723746bb84a4af0a6b2bcd64421c0b690061;p=deb_libcec.git use CCECTypeUtils::ToString(const cec_command& command) in CCECProcessor --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index bfed4c3..d9fadb0 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -480,13 +480,7 @@ void CCECProcessor::TransmitAbort(cec_logical_address source, cec_logical_addres void CCECProcessor::ProcessCommand(const cec_command &command) { // log the command - CStdString dataStr; - dataStr.Format(">> %1x%1x", command.initiator, command.destination); - if (command.opcode_set == 1) - dataStr.AppendFormat(":%02x", command.opcode); - for (uint8_t iPtr = 0; iPtr < command.parameters.size; iPtr++) - dataStr.AppendFormat(":%02x", (unsigned int)command.parameters[iPtr]); - m_libcec->AddLog(CEC_LOG_TRAFFIC, dataStr.c_str()); + m_libcec->AddLog(CEC_LOG_TRAFFIC, CCECTypeUtils::ToString(command).c_str()); // find the initiator CCECBusDevice *device = m_busDevices->At(command.initiator);