From: injun.yang Date: Tue, 10 Sep 2019 04:52:53 +0000 (+0900) Subject: When compare address, ignoring the case of the characters X-Git-Tag: accepted/tizen/unified/20190918.010258~7 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git;a=commitdiff_plain;h=684f5da84d22874810deb97ea6d72b81f63fbb70;ds=sidebyside When compare address, ignoring the case of the characters Change-Id: I1c720d63824c5789d80c56c29df8449a2ba201ed Signed-off-by: injun.yang --- diff --git a/bt-api/bt-hid-device.c b/bt-api/bt-hid-device.c index 803996f..e0e8a53 100644 --- a/bt-api/bt-hid-device.c +++ b/bt-api/bt-hid-device.c @@ -120,7 +120,7 @@ static hid_connected_device_info_t *__find_hid_info_with_address(const char *rem for (l = device_list; l != NULL; l = l->next) { hid_connected_device_info_t *info = l->data; - if (g_strcmp0((const char *)info->address, (const char *)remote_addr) == 0) + if (strcasecmp((const char *)info->address, (const char *)remote_addr) == 0) return info; } return NULL; diff --git a/bt-api/bt-telephony.c b/bt-api/bt-telephony.c index 8bc75f3..8ae305d 100644 --- a/bt-api/bt-telephony.c +++ b/bt-api/bt-telephony.c @@ -2269,7 +2269,7 @@ static void __bt_telephony_adapter_filter(GDBusConnection *connection, return; } - BT_INFO("Adapter Path = [%s]", path); + BT_DBG("Adapter Path = [%s]", path); if (strcasecmp(path, DEFAULT_ADAPTER_OBJECT_PATH) == 0) { if (__bt_telephony_get_src_addr(optional_param)) BT_ERR("Fail to get the local adapter address"); diff --git a/bt-service/bt-service-device.c b/bt-service/bt-service-device.c index c1599a7..4709e9d 100644 --- a/bt-service/bt-service-device.c +++ b/bt-service/bt-service-device.c @@ -2595,7 +2595,7 @@ int _bt_le_conn_update(const char *sender, BT_CHECK_PARAMETER(device_address, return); - BT_INFO("Sender %s, Min interval: %f, Max interval: %f, Latency: %u, Supervision timeout: %u", + BT_DBG("Sender %s, Min interval: %f, Max interval: %f, Latency: %u, Supervision timeout: %u", sender, interval_min, interval_max, latency, time_out); if (interval_min > interval_max || diff --git a/bt-service/bt-service-event-receiver.c b/bt-service/bt-service-event-receiver.c index c8a0731..da97278 100644 --- a/bt-service/bt-service-event-receiver.c +++ b/bt-service/bt-service-event-receiver.c @@ -2906,7 +2906,7 @@ static void __bt_obexd_event_filter(GDBusConnection *connection, BT_ERR("Fail to get the path"); return; } - BT_INFO("object_path = [%s]", obj_path); + BT_DBG("object_path = [%s]", obj_path); /*Handle OPP_SERVER_CONNECTED_EVENT here */ if (strncmp(obj_path, BT_SESSION_BASEPATH_SERVER, @@ -2926,7 +2926,7 @@ static void __bt_obexd_event_filter(GDBusConnection *connection, BT_ERR("Fail to get the path"); return; } - BT_INFO("object_path = [%s]", obj_path); + BT_DBG("object_path = [%s]", obj_path); if (strncmp(obj_path, BT_SESSION_BASEPATH_CLIENT, strlen(BT_SESSION_BASEPATH_CLIENT)) == 0) {