cec: show the opcode as hex instead of decimal in the log when storing a command...
authorLars Op den Kamp <lars@opdenkamp.eu>
Sat, 8 Oct 2011 09:52:27 +0000 (11:52 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sat, 8 Oct 2011 09:52:27 +0000 (11:52 +0200)
src/lib/LibCEC.cpp

index 2f768157887c6e7fa176af4550462967916e9690..9498bc9995810d4f1e7c31c22e0dab7e2e2e1e6d 100644 (file)
@@ -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