From: Lars Op den Kamp Date: Tue, 25 Oct 2011 22:59:59 +0000 (+0200) Subject: cec: changed log format of transmitted commands X-Git-Tag: upstream/2.2.0~1^2~219 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2b8857687cfb4fe7bcf3e9b44abb3e4e4dce3987;p=deb_libcec.git cec: changed log format of transmitted commands --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 43535a6..ebe831c 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -184,10 +184,10 @@ void CCECProcessor::LogOutput(const cec_command &data) { CStdString txStr = "transmit "; txStr.AppendFormat(" %02x", ((uint8_t)data.initiator << 4) + (uint8_t)data.destination); - txStr.AppendFormat(" %02x", (uint8_t)data.opcode); + txStr.AppendFormat(":%02x", (uint8_t)data.opcode); for (uint8_t iPtr = 0; iPtr < data.parameters.size; iPtr++) - txStr.AppendFormat(" %02x", data.parameters[iPtr]); + txStr.AppendFormat(":%02x", data.parameters[iPtr]); m_controller->AddLog(CEC_LOG_DEBUG, txStr.c_str()); }