cec: show the command as string instead of int when an unexpected command was received.
[deb_libcec.git] / src / lib / CECProcessor.cpp
index 3b6f6f2e1cac5a18b7d810135e3a7d1116921799..5568d9506a999807407cfc3095187c91f54d9d24 100644 (file)
@@ -316,7 +316,7 @@ bool CCECProcessor::WaitForTransmitSucceeded(uint8_t iLength, uint32_t iTimeout
       break;
     default:
       CStdString strLog;
-      strLog.Format("received unexpected reply '%1x' instead of ack", msg.message());
+      strLog.Format("received unexpected reply '%s' instead of ack", msg.MessageCodeAsString().c_str());
       m_controller->AddLog(CEC_LOG_WARNING, strLog);
       bError = true;
       break;