bt-api: Do not log the _bt_check_privilege() using macro 72/102472/1
authorSyam Sidhardhan <s.syam@samsung.com>
Wed, 30 Nov 2016 12:36:41 +0000 (18:06 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 6 Dec 2016 02:21:29 +0000 (11:21 +0900)
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 <s.syam@samsung.com>
bt-api/bt-common.c

index b0e457c..1fc5bcf 100644 (file)
@@ -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);