Enhance debug message
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-adapter.c
index 1b0de98..418613f 100644 (file)
@@ -64,7 +64,7 @@ BT_EXPORT_API int bluetooth_check_adapter(void)
 #ifndef TIZEN_TEST_EMUL
        int ret;
 
-       ret = _bt_get_adapter_path(_bt_gdbus_get_system_gconn(), NULL);
+       ret = _bt_get_adapter_path(_bt_get_system_private_conn(), NULL);
 
        if (ret != BLUETOOTH_ERROR_NONE)
                return BLUETOOTH_ADAPTER_DISABLED;
@@ -85,6 +85,7 @@ BT_EXPORT_API int bluetooth_enable_adapter(void)
        int result;
 
        BT_INFO_C("### Enable adapter");
+       _bt_print_api_caller_name();
        retv_if(bluetooth_check_adapter() == BLUETOOTH_ADAPTER_ENABLED,
                                BLUETOOTH_ERROR_DEVICE_ALREADY_ENABLED);
 
@@ -109,6 +110,7 @@ BT_EXPORT_API int bluetooth_disable_adapter(void)
        int result;
 
        BT_INFO_C("### Disable adapter");
+       _bt_print_api_caller_name();
        BT_CHECK_ENABLED(return);
 
        BT_INIT_PARAMS();
@@ -126,7 +128,7 @@ BT_EXPORT_API int bluetooth_recover_adapter(void)
 {
        int result;
 
-       BT_INFO("Recover adapter");
+       BT_INFO_C("### Recover adapter");
        BT_CHECK_ENABLED(return);
 
        BT_INIT_PARAMS();