From: Lars Op den Kamp Date: Thu, 2 Feb 2012 02:13:59 +0000 (+0100) Subject: cosmetics: AddLog() has formatting params X-Git-Tag: upstream/2.2.0~1^2~36^2~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=bca69ca1081e05f4ea6b14bcc0e69921511659a1;p=deb_libcec.git cosmetics: AddLog() has formatting params --- diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index a3b7c45..b439f74 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -412,9 +412,7 @@ bool CUSBCECAdapterCommunication::SetLineTimeout(uint8_t iTimeout) bool CUSBCECAdapterCommunication::SetAckMask(uint16_t iMask) { bool bReturn(false); - CStdString strLog; - strLog.Format("setting ackmask to %2x", iMask); - CLibCEC::AddLog(CEC_LOG_DEBUG, strLog.c_str()); + CLibCEC::AddLog(CEC_LOG_DEBUG, "setting ackmask to %2x", iMask); CCECAdapterMessage *output = new CCECAdapterMessage; @@ -436,9 +434,7 @@ bool CUSBCECAdapterCommunication::SetAckMask(uint16_t iMask) bool CUSBCECAdapterCommunication::SetControlledMode(bool controlled) { bool bReturn(false); - CStdString strLog; - strLog.Format("turning controlled mode %s", controlled ? "on" : "off"); - CLibCEC::AddLog(CEC_LOG_DEBUG, strLog.c_str()); + CLibCEC::AddLog(CEC_LOG_DEBUG, "turning controlled mode %s", controlled ? "on" : "off"); CCECAdapterMessage *output = new CCECAdapterMessage;