projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enhance debug message
[platform/core/connectivity/bluetooth-frwk.git]
/
bt-api
/
bt-adapter.c
diff --git
a/bt-api/bt-adapter.c
b/bt-api/bt-adapter.c
index
1b0de98
..
418613f
100644
(file)
--- a/
bt-api/bt-adapter.c
+++ b/
bt-api/bt-adapter.c
@@
-64,7
+64,7
@@
BT_EXPORT_API int bluetooth_check_adapter(void)
#ifndef TIZEN_TEST_EMUL
int ret;
#ifndef TIZEN_TEST_EMUL
int ret;
- ret = _bt_get_adapter_path(_bt_g
dbus_get_system_g
conn(), NULL);
+ ret = _bt_get_adapter_path(_bt_g
et_system_private_
conn(), NULL);
if (ret != BLUETOOTH_ERROR_NONE)
return BLUETOOTH_ADAPTER_DISABLED;
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");
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);
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");
int result;
BT_INFO_C("### Disable adapter");
+ _bt_print_api_caller_name();
BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();
BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();
@@
-126,7
+128,7
@@
BT_EXPORT_API int bluetooth_recover_adapter(void)
{
int result;
{
int result;
- BT_INFO
("
Recover adapter");
+ BT_INFO
_C("###
Recover adapter");
BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();
BT_CHECK_ENABLED(return);
BT_INIT_PARAMS();