Calls sd_notify(STOPPING=1) to ensure systemd's operation
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-hdp.c
index d85212f..f8f0fad 100755 (executable)
@@ -199,7 +199,7 @@ static gboolean __bt_hdp_internal_data_received(GIOChannel *gio,
                return FALSE;
        }
 
-       BT_DBG("fd: %d, len: %d, buffer: %s", fd, len, buff);
+       BT_DBG("fd: %d, len: %zd, buffer: %s", fd, len, buff);
 
        user_info = _bt_get_user_data(BT_COMMON);
        if (user_info->cb) {
@@ -412,7 +412,7 @@ BT_EXPORT_API int bluetooth_hdp_send_data(unsigned int channel_id,
 
        switch (privilege_token) {
        case 0:
-               result = _bt_check_privilege(BT_BLUEZ_SERVICE, BT_HDP_SEND_DATA);
+               result = _bt_check_privilege(BT_CHECK_PRIVILEGE, BT_HDP_SEND_DATA);
 
                if (result == BLUETOOTH_ERROR_NONE) {
                        privilege_token = 1; /* Have a permission */