cosmetics
[deb_libcec.git] / src / lib / adapter / USBCECAdapterCommunication.cpp
index b439f748aeb5e3a9ceeaaa742768152a92a126dd..12b8eacde7f70b2197656cf78d8a6cd7c33576d5 100644 (file)
@@ -605,9 +605,7 @@ void CUSBCECAdapterCommunication::SendMessageToAdapter(CCECAdapterMessage *msg)
 
   if (m_port->Write(msg->packet.data, msg->Size()) != (ssize_t) msg->Size())
   {
-    CStdString strError;
-    strError.Format("error writing to serial port: %s", m_port->GetError().c_str());
-    CLibCEC::AddLog(CEC_LOG_ERROR, strError);
+    CLibCEC::AddLog(CEC_LOG_ERROR, "error writing to serial port: %s", m_port->GetError().c_str());
     msg->state = ADAPTER_MESSAGE_STATE_ERROR;
   }
   else