Debug logging changes
authorChad Peckham <chad.peckham@nokia.com>
Wed, 02 Sep 2009 16:31:21 -0500
changeset 477 cedd5978e2bc
parent 476 1e1ad434efb1
child 478 2d6f57ea6ce2
Debug logging changes
connectivity/com.nokia.tcf/native/TCFNative/TCFCommSerial/RealSerialComm.cpp
--- a/connectivity/com.nokia.tcf/native/TCFNative/TCFCommSerial/RealSerialComm.cpp	Wed Sep 02 16:30:45 2009 -0500
+++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFCommSerial/RealSerialComm.cpp	Wed Sep 02 16:31:21 2009 -0500
@@ -769,10 +769,10 @@
 					char msg[6];
 					msg[0] = '\0';
 
-					sTcpLogMsg[0] = '\0';
+					sLogMsg[0] = '\0';
 					if (reallen > 0)
 					{
-						sTcpLogMsg[0] = '\0';
+						sLogMsg[0] = '\0';
 						for (int i = 0; i < reallen; i++)
 						{
 							if (isalnum(ptr[i]))
@@ -783,12 +783,12 @@
 							{
 								sprintf(msg, "%02.2x ", ptr[i]);
 							}
-							strcat(sTcpLogMsg, msg);
+							strcat(sLogMsg, msg);
 						}
 					}
 #endif
 					PROCLOGOPEN();
-					PROCLOGA5("CTcpComm::ProcessBuffer - RouteMesssage pRegistry = %x id=%x len=%d len=%d msg=%s\n", pRegistry, msgId, fullMessageLength, rawLength, sTcpLogMsg);
+					PROCLOGA5("CRealSerialComm::ProcessBuffer - RouteMesssage pRegistry = %x id=%x len=%d len=%d msg=%s\n", pRegistry, msgId, fullMessageLength, rawLength, sLogMsg);
 					PROCLOGCLOSE();
 
 					err = pRegistry->RouteMessage(msgId, fullMessage, fullMessageLength, rawMessage, rawLength);