From: Lars Op den Kamp Date: Sat, 8 Oct 2011 09:52:27 +0000 (+0200) Subject: cec: show the opcode as hex instead of decimal in the log when storing a command... X-Git-Tag: upstream/2.2.0~1^2~273 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3d6f51d524e90568aec92e109caf4225dc256b1c;p=deb_libcec.git cec: show the opcode as hex instead of decimal in the log when storing a command in the buffer --- diff --git a/src/lib/LibCEC.cpp b/src/lib/LibCEC.cpp index 2f76815..9498bc9 100644 --- a/src/lib/LibCEC.cpp +++ b/src/lib/LibCEC.cpp @@ -217,7 +217,7 @@ void CLibCEC::AddCommand(cec_logical_address source, cec_logical_address destina if (m_commandBuffer.Push(command)) { CStdString strDebug; - strDebug.Format("stored command '%d' in the command buffer. buffer size = %d", opcode, m_commandBuffer.Size()); + strDebug.Format("stored command '%2x' in the command buffer. buffer size = %d", opcode, m_commandBuffer.Size()); AddLog(CEC_LOG_DEBUG, strDebug); } else