GATT: Handle prepare_authorize parameter in WriteValue DBUS API
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / oal-audio-src.c
index 989b2b9..e661574 100644 (file)
@@ -109,12 +109,12 @@ oal_status_t audio_connect(bt_address_t *device_address)
        bt_status_t status;
        bdstr_t bdstr;
 
-       API_TRACE();
+       API_TRACE("Audio connect");
 
        CHECK_OAL_AUDIO_ENABLED();
        OAL_CHECK_PARAMETER(device_address, return);
 
-       BT_INFO("BT Audio Address: %s", bdt_bd2str(device_address, &bdstr));
+       BT_INFO("BT Audio Address: %s", bdt_bd2str(device_address, &bdstr) + 12);
 
        /* Call connect function of Bluedroid*/
        status = blued_a2dp_interface->connect((bt_bdaddr_t *)device_address);
@@ -132,12 +132,12 @@ oal_status_t audio_disconnect(bt_address_t *device_address)
        bdstr_t bdstr;
        bt_status_t status;
 
-       API_TRACE();
+       API_TRACE("Audio disconnect");
 
        CHECK_OAL_AUDIO_ENABLED();
        OAL_CHECK_PARAMETER(device_address, return);
 
-       BT_INFO("BT Audio Address: %s", bdt_bd2str(device_address, &bdstr));
+       BT_INFO("BT Audio Address: %s", bdt_bd2str(device_address, &bdstr) + 12);
 
        /* call Disconnect function of Bluedroid */
        status = blued_a2dp_interface->disconnect((bt_bdaddr_t *)device_address);
@@ -155,7 +155,7 @@ static void cb_audio_connection_state(btav_connection_state_t state, bt_bdaddr_t
        oal_event_t event;
 
        ret_if(bd_addr == NULL);
-       BT_INFO("state = %d,  BT Address = %s", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr));
+       BT_INFO("state = %d,  BT Address = %s", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr) + 12);
 
        event_data = g_new0(bt_address_t, 1);
        memcpy(event_data->addr, bd_addr->address, BT_ADDRESS_BYTES_NUM);
@@ -192,7 +192,7 @@ static void cb_audio_state(btav_audio_state_t state, bt_bdaddr_t* bd_addr)
        bdstr_t bdstr;
 
        ret_if(bd_addr == NULL);
-       BT_INFO("A2DP state = %d,  BT Address = %s", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr));
+       BT_INFO("A2DP state = %d,  BT Address = %s", state, bdt_bd2str((bt_address_t*)bd_addr, &bdstr) + 12);
 
        if (state == BTAV_AUDIO_STATE_REMOTE_SUSPEND) {
                BT_INFO("Audio Streaming Suspended");