Fix the issue that can not send device event
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / oal-hf-client.c
index 05dc62c..4dcbe31 100644 (file)
@@ -135,7 +135,7 @@ oal_status_t hf_client_connect(bt_address_t *device_address)
        CHECK_OAL_HFP_CLIENT_ENABLED();
        OAL_CHECK_PARAMETER(device_address, return);
 
-       BT_INFO("BT remote AG Device Address: %s", bdt_bd2str(device_address, &bdstr));
+       BT_INFO("BT remote AG Device Address: %s", bdt_bd2str(device_address, &bdstr) + 12);
        /* Call connect function of Bluedroid*/
        status = blued_hf_client_interface->connect((bt_bdaddr_t *)device_address);
        if ((status != BT_STATUS_SUCCESS) && (status != BT_STATUS_DONE)) {
@@ -156,7 +156,7 @@ oal_status_t hf_client_disconnect(bt_address_t *device_address)
        CHECK_OAL_HFP_CLIENT_ENABLED();
        OAL_CHECK_PARAMETER(device_address, return);
 
-       BT_INFO("BT remote AG Address: %s", bdt_bd2str(device_address, &bdstr));
+       BT_INFO("BT remote AG Address: %s", bdt_bd2str(device_address, &bdstr) + 12);
        /* call Disconnect function of Bluedroid */
        status = blued_hf_client_interface->disconnect((bt_bdaddr_t *)device_address);
        if ((status != BT_STATUS_SUCCESS) && (status != BT_STATUS_DONE)) {
@@ -185,7 +185,7 @@ void cb_hf_client_connection_state(bthf_client_connection_state_t state, unsigne
        }
        memcpy(event_data->addr, bd_addr->address, BT_ADDRESS_BYTES_NUM);
 
-       BT_INFO("HFP Client Profile state = [%d],  BT Address = [%s]", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr));
+       BT_INFO("HFP Client Profile state = [%d],  BT Address = [%s]", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr) + 12);
        switch (state) {
        case BTHF_CLIENT_CONNECTION_STATE_DISCONNECTED: {
                 event_type = OAL_EVENT_HF_CLIENT_DISCONNECTED;