From f4374f9c0bfae57259ed8a27bf60cf80280c3fb2 Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Wed, 30 Nov 2016 18:06:41 +0530 Subject: [PATCH] bt-api: Do not log the _bt_check_privilege() using macro Here we are replacing the _bt_send_request() macro with the direct function call inorder to not print the _bt_check_privilege() method call. This helps us in reducing the prints and also if there is any error the caller is always printing the details. - result = _bt_send_request(service_type, service_function, + result = _bt_sync_send_request(service_type, service_function Change-Id: Ibe5b1d3acb4eff978b93ff4fdecb4ad2806b330a Signed-off-by: Syam Sidhardhan --- bt-api/bt-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt-api/bt-common.c b/bt-api/bt-common.c index b0e457c..1fc5bcf 100644 --- a/bt-api/bt-common.c +++ b/bt-api/bt-common.c @@ -1499,7 +1499,7 @@ int _bt_check_privilege(int service_type, int service_function) BT_INIT_PARAMS(); BT_ALLOC_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param); - result = _bt_send_request(service_type, service_function, + result = _bt_sync_send_request(service_type, service_function, in_param1, in_param2, in_param3, in_param4, &out_param); BT_FREE_PARAMS(in_param1, in_param2, in_param3, in_param4, out_param); -- 2.7.4