Applys secure log. tizen_2.1 2.1b_release accepted/tizen/20130520.101459 accepted/tizen_2.1/20130425.034841 submit/tizen/20130517.045505 submit/tizen_2.1/20130424.232348
authordukan.kim <dukan.kim@samsung.com>
Fri, 19 Apr 2013 11:39:48 +0000 (20:39 +0900)
committerdukan.kim <dukan.kim@samsung.com>
Fri, 19 Apr 2013 11:39:48 +0000 (20:39 +0900)
Change-Id: I6291e033481587dde3f37c0e848c49701781da2f
Signed-off-by: dukan.kim <dukan.kim@samsung.com>
src/FNetBt_BluetoothDeviceImpl.cpp
src/FNetBt_BluetoothGapSystemAdapter.cpp
src/FNetBt_BluetoothHdpSystemAdapter.cpp
src/FNetBt_BluetoothIpcProxy.cpp
src/FNetBt_BluetoothSppSystemAdapter.cpp

index 4b7af09..d8bb405 100755 (executable)
@@ -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;
 }
index c0f67a9..de5faf3 100755 (executable)
@@ -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);
 
index 0ea320a..8045ae1 100755 (executable)
@@ -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
index 5fa6056..c501d53 100755 (executable)
@@ -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;
 }
index 11fcc36..3358546 100755 (executable)
@@ -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);