From 840357583481cc346d823508aa146aa88841862c Mon Sep 17 00:00:00 2001 From: "dukan.kim" Date: Fri, 19 Apr 2013 20:39:48 +0900 Subject: [PATCH] Applys secure log. Change-Id: I6291e033481587dde3f37c0e848c49701781da2f Signed-off-by: dukan.kim --- src/FNetBt_BluetoothDeviceImpl.cpp | 2 +- src/FNetBt_BluetoothGapSystemAdapter.cpp | 2 +- src/FNetBt_BluetoothHdpSystemAdapter.cpp | 8 ++++---- src/FNetBt_BluetoothIpcProxy.cpp | 2 +- src/FNetBt_BluetoothSppSystemAdapter.cpp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/FNetBt_BluetoothDeviceImpl.cpp b/src/FNetBt_BluetoothDeviceImpl.cpp index 4b7af09..d8bb405 100755 --- a/src/FNetBt_BluetoothDeviceImpl.cpp +++ b/src/FNetBt_BluetoothDeviceImpl.cpp @@ -305,7 +305,7 @@ _BluetoothDeviceImpl::GetAddressByteBuffer(const Tizen::Base::String& srcAddr, c SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_SYSTEM, "The ByteBuffer argument is invalid."); } - SysLog(NID_NET_BT, "Translated address is [%ls]", GetAddressString(dstAddr).GetPointer()); + SysSecureLog(NID_NET_BT, "Translated address is [%ls]", GetAddressString(dstAddr).GetPointer()); return E_SUCCESS; } diff --git a/src/FNetBt_BluetoothGapSystemAdapter.cpp b/src/FNetBt_BluetoothGapSystemAdapter.cpp index c0f67a9..de5faf3 100755 --- a/src/FNetBt_BluetoothGapSystemAdapter.cpp +++ b/src/FNetBt_BluetoothGapSystemAdapter.cpp @@ -916,7 +916,7 @@ _BluetoothGapSystemAdapter::OnPairedDeviceFound(bt_device_info_s* pDeviceInfo, v // converts the UTF8 multibyte string to Unicode String (void) StringUtil::Utf8ToString(pDeviceInfo->remote_name, convertedName); - SysLog(NID_NET_BT, "Paired Device - (name: %ls)", convertedName.GetPointer()); + SysSecureLog(NID_NET_BT, "Paired Device - (name: %ls)", convertedName.GetPointer()); _BluetoothDeviceImpl* pDevImpl = _BluetoothDeviceImpl::GetInstance(*pPairedDevice); diff --git a/src/FNetBt_BluetoothHdpSystemAdapter.cpp b/src/FNetBt_BluetoothHdpSystemAdapter.cpp index 0ea320a..8045ae1 100755 --- a/src/FNetBt_BluetoothHdpSystemAdapter.cpp +++ b/src/FNetBt_BluetoothHdpSystemAdapter.cpp @@ -257,7 +257,7 @@ _BluetoothHdpSystemAdapter::ConnectToSource(const Tizen::Base::ByteBuffer& sourc SysTryReturnResult(NID_NET_BT, pSourceAddress != null, E_OPERATION_FAILED, "Converting address to char* fails."); err = bt_hdp_connect_to_source(pSourceAddress, pAppId); - SysLog(NID_NET_BT, "Connecting to the remote source device [%s] %s.", pSourceAddress, + SysSecureLog(NID_NET_BT, "Connecting to the remote source device [%s] %s.", pSourceAddress, err == BT_ERROR_NONE ? "is successful" : "fails"); if (err == BT_ERROR_NONE) { @@ -284,7 +284,7 @@ _BluetoothHdpSystemAdapter::Disconnect(int channelId) SysTryReturnResult(NID_NET_BT, pSourceAddress != null, E_OPERATION_FAILED, "Address converting fails."); err = bt_hdp_disconnect(pSourceAddress, channelId); - SysLog(NID_NET_BT, "Disconnecting from the remote source device [%s] with channel id [%d] %s.", pSourceAddress, channelId, + SysSecureLog(NID_NET_BT, "Disconnecting from the remote source device [%s] with channel id [%d] %s.", pSourceAddress, channelId, err == BT_ERROR_NONE ? "is successful" : "fails"); if (err == BT_ERROR_NONE) { @@ -309,7 +309,7 @@ _BluetoothHdpSystemAdapter::SendData(int channelId, const Tizen::Base::ByteBuffe healthDataLength = data.GetRemaining(); err = bt_hdp_send_data(channelId, (char*)pHealthData, healthDataLength); - SysLog(NID_NET_BT, "Sending data to the remote source with channel id [%d] of length [%d] %s.", channelId, healthDataLength, + SysSecureLog(NID_NET_BT, "Sending data to the remote source with channel id [%d] of length [%d] %s.", channelId, healthDataLength, err == BT_ERROR_NONE ? "is successful" : "fails"); if (err == BT_ERROR_NONE) { @@ -433,7 +433,7 @@ _BluetoothHdpSystemAdapter::OnHdpDataReceived(unsigned int channelId, const char // Fire the data received event using the _BluetoothHealthImpl handle pHealthImpl->OnBluetoothHealthDataReceived(channelId, dataBuffer); - SysLog(NID_NET_BT, " Received Health data of (%d bytes) through the channel (ID: %d) is received.", dataSize, channelId); + SysSecureLog(NID_NET_BT, " Received Health data of (%d bytes) through the channel (ID: %d) is received.", dataSize, channelId); } } } } // Tizen::Net::Bluetooth diff --git a/src/FNetBt_BluetoothIpcProxy.cpp b/src/FNetBt_BluetoothIpcProxy.cpp index 5fa6056..c501d53 100755 --- a/src/FNetBt_BluetoothIpcProxy.cpp +++ b/src/FNetBt_BluetoothIpcProxy.cpp @@ -110,7 +110,7 @@ _BluetoothIpcProxy::GetLocalDeviceName(Tizen::Base::String& deviceName) const SysTryReturnResult(NID_NET_BT, r == E_SUCCESS, E_SYSTEM, "A system error occurred."); SysTryReturnResult(NID_NET_BT, ret == E_SUCCESS, ret, "Propagating."); - SysLog(NID_NET_BT, "The Bluetooth name obtained through IPC is [%ls].", deviceName.GetPointer()); + SysSecureLog(NID_NET_BT, "The Bluetooth name obtained through IPC is [%ls].", deviceName.GetPointer()); return E_SUCCESS; } diff --git a/src/FNetBt_BluetoothSppSystemAdapter.cpp b/src/FNetBt_BluetoothSppSystemAdapter.cpp index 11fcc36..3358546 100755 --- a/src/FNetBt_BluetoothSppSystemAdapter.cpp +++ b/src/FNetBt_BluetoothSppSystemAdapter.cpp @@ -426,7 +426,7 @@ _BluetoothSppSystemAdapter::OnSocketConnectionStateChanged(int status, bt_socket case BT_SOCKET_CONNECTED: if (pConnectionInfo->local_role == BT_SOCKET_CLIENT) { - SysLog(NID_NET_BT, "Connected event from [address: %s, uuid: %s] is received.", + SysSecureLog(NID_NET_BT, "Connected event from [address: %s, uuid: %s] is received.", pConnectionInfo->remote_address, pConnectionInfo->service_uuid); String address(pConnectionInfo->remote_address); -- 2.7.4