for (list = dnssd_handle_list; list; list = list->next) {
local_handle = (dnssd_handle_s *)list->data;
if (local_handle == handle) {
- DNSSD_LOGD("Local handle %p is found", handle);
+ DNSSD_LOGI("Local handle %p is found", handle);
__DNSSD_LOG_FUNC_EXIT__;
return handle;
}
local_handle = (dnssd_handle_s *)list->data;
if (local_handle && local_handle->service_handler ==
dnssd_service) {
- DNSSD_LOGD("Service found with handler %u",
+ DNSSD_LOGI("Service found with handler %u",
dnssd_service);
__DNSSD_LOG_FUNC_EXIT__;
return local_handle;
reg = GET_REG_DATA_P(local_handle);
reg->if_index = kDNSServiceInterfaceIndexAny;
- DNSSD_LOGD("New handle created [%p]->[%u] type %s", local_handle,
+ DNSSD_LOGI("New handle created [%p]->[%u] type %s", local_handle,
*dnssd_service, local_handle->service_type);
dnssd_handle_list = g_slist_prepend(dnssd_handle_list, local_handle);
local_handle = __dnssd_get_struct_from_handle(dnssd_service);
if (local_handle == NULL) {
- DNSSD_LOGD("Service Handler not found");
+ DNSSD_LOGI("Service Handler not found");
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_SERVICE_NOT_FOUND;
}
*handle = local_handle;
+ __DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_NONE;
}
local_handle = __dnssd_get_struct_from_handle(dnssd_service);
if (local_handle == NULL) {
- DNSSD_LOGD("Service Handler not found");
+ DNSSD_LOGI("Service Handler not found");
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_SERVICE_NOT_FOUND;
}
if (local_handle->op_type != DNSSD_TYPE_REGISTER) {
- DNSSD_LOGD("DNSSD service is not a local service"); //LCOV_EXCL_LINE
+ DNSSD_LOGI("DNSSD service is not a local service"); //LCOV_EXCL_LINE
__DNSSD_LOG_FUNC_EXIT__; //LCOV_EXCL_LINE
return DNSSD_ERROR_SERVICE_NOT_FOUND; //LCOV_EXCL_LINE
}
*handle = local_handle;
+ __DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_NONE;
}
return res;
}
- DNSSD_LOGD("Destroy handle: [%p]->[%u]", local_handle, dnssd_service);
+ DNSSD_LOGI("Destroy handle: [%p]->[%u]", local_handle, dnssd_service);
dnssd_handle_list = g_slist_remove(dnssd_handle_list, local_handle);
g_free(local_handle->service_type);
g_free(local_handle);
local_handle = NULL;
- DNSSD_LOGD("g_slist length [%d]", g_slist_length(dnssd_handle_list));
+ DNSSD_LOGI("g_slist length [%d]", g_slist_length(dnssd_handle_list));
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_NONE;
}
if (service_name == NULL) {
- DNSSD_LOGD("Service name is NULL");
+ DNSSD_LOGI("Service name is NULL");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_INVALID_PARAMETER;
g_free(reg->service_name);
reg->service_name = g_strdup(service_name);
- DNSSD_LOGD("Successfully set service name %s", service_name);
+ DNSSD_LOGI("Successfully set service name %s", service_name);
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
}
if (port < 0 || port > 65535) {
- DNSSD_LOGD("Invalid port range");
+ DNSSD_LOGI("Invalid port range");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_INVALID_PARAMETER;
reg = GET_REG_DATA_P(local_handle);
reg->port = port;
- DNSSD_LOGD("Successfully set port %d", port);
+ DNSSD_LOGI("Successfully set port %d", port);
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_INVALID_PARAMETER;
}
- DNSSD_LOGD("Interface index: %u", if_index);
+ DNSSD_LOGI("Interface index: %u", if_index);
reg = GET_REG_DATA_P(local_handle);
reg->if_index = if_index;
- DNSSD_LOGD("Successfully set interface %s with index %u", interface, if_index);
+ DNSSD_LOGI("Successfully set interface %s with index %u", interface, if_index);
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
res = DNSSD_ERROR_INVALID_OPERATION;
}
else {
- DNSSD_LOGD("Interface Name %s", iface);
+ DNSSD_LOGI("Interface Name %s", iface);
*interface = g_strdup(iface);
}
}
else {
- DNSSD_LOGD("No Interface (all interfaces is used)"); //LCOV_EXCL_LINE
+ DNSSD_LOGI("No Interface (all interfaces is used)"); //LCOV_EXCL_LINE
*interface = NULL; //LCOV_EXCL_LINE
}
}
if (length == 0 || value == NULL)
- DNSSD_LOGD("Value size is 0 or NULL value passed"); //LCOV_EXCL_LINE
+ DNSSD_LOGI("Value size is 0 or NULL value passed"); //LCOV_EXCL_LINE
reg = GET_REG_DATA_P(local_handle);
txt_record = &(reg->txt_ref);
if (reg->is_txt_ref == 0) {
- DNSSD_LOGD("Creating TXT Record");
+ DNSSD_LOGI("Creating TXT Record");
TXTRecordCreate(txt_record, 0, NULL);
reg->is_txt_ref = 1;
}
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_OPERATION_FAILED;
} else {
- DNSSD_LOGD("Succeeded to add value to key");
+ DNSSD_LOGI("Succeeded to add value to key");
}
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_OPERATION_FAILED;
} else {
- DNSSD_LOGD("Succeeded to remove value from key");
+ DNSSD_LOGI("Succeeded to remove value from key");
}
txt_len = TXTRecordGetLength(txt_record);
if (TXTRecordGetCount(txt_len, txt_record) == 0) {
- DNSSD_LOGD("No more key exists in TXT Record");
+ DNSSD_LOGI("No more key exists in TXT Record");
/* Free TXT Record */
TXTRecordDeallocate(txt_record);
reg->is_txt_ref = 0;
}
reg = GET_REG_DATA_P(local_handle);
- DNSSD_LOGD("Record Type %d Record len %d", type, length);
+ DNSSD_LOGI("Record Type %d Record len %d", type, length);
if (reg->record_ref == NULL) {
- DNSSD_LOGD("Adding DNS Service Record");
+ DNSSD_LOGI("Adding DNS Service Record");
ret = DNSServiceAddRecord(local_handle->sd_ref, &(reg->record_ref),
local_handle->flags, type, length, data, 0);
} else {
- DNSSD_LOGD("Updating DNS Service Record");
+ DNSSD_LOGI("Updating DNS Service Record");
ret = DNSServiceUpdateRecord(local_handle->sd_ref, reg->record_ref,
local_handle->flags, length, data, 0);
}
return DNSSD_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
- DNSSD_LOGD("Successfully added record for DNS Service");
+ DNSSD_LOGI("Successfully added record for DNS Service");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
dnssd_err = DNSServiceGetProperty(kDNSServiceProperty_DaemonVersion, &version, &size);
if (dnssd_err != kDNSServiceErr_NoError)
- DNSSD_LOGD("Daemon is running ver. %d.%d", version / 10000, version / 100 % 100); //LCOV_EXCL_LINE
+ DNSSD_LOGI("Daemon is running ver. %d.%d", version / 10000, version / 100 % 100); //LCOV_EXCL_LINE
else
DNSSD_LOGE("Daemon is not running");
reg->record_ref = NULL;
- DNSSD_LOGD("Successfully removed record for DNS Service");
+ DNSSD_LOGI("Successfully removed record for DNS Service");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
dnssd_registered_cb callback;
void *data;
- DNSSD_LOGD("Received Registration Reply");
+ DNSSD_LOGI("Received Registration Reply");
if (error_code != kDNSServiceErr_NoError)
DNSSD_LOGE("Failed to register, error code %d -> %s", //LCOV_EXCL_LINE
for (list = dnssd_handle_list; list; list = list->next) {
dnssd_handle = (dnssd_handle_s *) list->data;
if (dnssd_handle->sd_ref == sd_ref) {
- DNSSD_LOGD("Registration Callback set for [%p]",
+ DNSSD_LOGI("Registration Callback set for [%p]",
dnssd_handle);
/* Update domain and flags for any future use */
g_strlcpy(dnssd_handle->domain, domain,
sizeof(dnssd_handle->domain));
dnssd_handle->flags = flags;
- DNSSD_LOGD("Domain/Interface/Flags : %s/0x%x",
+ DNSSD_LOGI("Domain/Interface/Flags : %s/0x%x",
dnssd_handle->domain,
dnssd_handle->flags);
res = __get_valid_registered_handle(local_service, &local_handle);
if (res != DNSSD_ERROR_NONE) {
DNSSD_UNLOCK;
+ __DNSSD_LOG_FUNC_EXIT__; //LCOV_EXCL_LINE
return res;
}
reg = GET_REG_DATA_P(local_handle);
if (reg->service_name == NULL) {
- DNSSD_LOGD("No Service Name Provided"); //LCOV_EXCL_LINE
+ DNSSD_LOGI("No Service Name Provided"); //LCOV_EXCL_LINE
reg->service_name = g_strdup(""); //LCOV_EXCL_LINE
} else
- DNSSD_LOGD("Service Name is %s", reg->service_name);
+ DNSSD_LOGI("Service Name is %s", reg->service_name);
- DNSSD_LOGD("Domain/Interface/Flags : %s/%d/0x%x", local_handle->domain,
+ DNSSD_LOGI("Domain/Interface/Flags : %s/%d/0x%x", local_handle->domain,
reg->if_index, local_handle->flags);
__dnssd_service_get_all_txt_record(local_service, &length, &data);
reg->user_data = user_data;
__dnssd_handle_add_event_handler(&(local_handle->watch_id), local_handle);
- DNSSD_LOGD("Succeeded to register for dns service");
+ DNSSD_LOGI("Succeeded to register for dns service");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_NONE;
res = __get_valid_registered_handle(local_service, &local_handle);
if (res != DNSSD_ERROR_NONE) {
DNSSD_UNLOCK;
+ __DNSSD_LOG_FUNC_EXIT__; //LCOV_EXCL_LINE
return res;
}
static gboolean __remove_service_getaddrinfo_socket(gpointer user_data)
{
DNSSD_LOCK;
- DNSSD_LOGD("Remove DNSServiceGetAddrInfo socket");
+ DNSSD_LOGI("Remove DNSServiceGetAddrInfo socket");
dnssd_handle_s *local_handle = user_data;
if (local_handle->watch_id > 0) {
GMainContext *context = g_main_context_get_thread_default();
dnssd_service_state_e service_state;
if (user_data == NULL) {
- DNSSD_LOGD("Invalid found handle");
+ DNSSD_LOGI("Invalid found handle");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return;
/* Update interface and flags for any future use */
found->if_index = if_index;
local_handle->flags = flags;
- DNSSD_LOGD("Interface/Flags : %d/0x%x",
+ DNSSD_LOGI("Interface/Flags : %d/0x%x",
found->if_index,
local_handle->flags);
dnssd_handle = __dnssd_get_struct_from_handle(found->browse_handler);
if (dnssd_handle)
- DNSSD_LOGD("GetAddrInfo Callback set for [%p]", dnssd_handle);
+ DNSSD_LOGI("GetAddrInfo Callback set for [%p]", dnssd_handle);
__update_found_address(address, found);
if (flags & kDNSServiceFlagsMoreComing) {
- DNSSD_LOGD("More results are queued, No need to send callback to "
+ DNSSD_LOGI("More results are queued, No need to send callback to "
"application at this stage");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
found->callback.resolved_cb(DNSSD_ERROR_NONE,
local_handle->service_handler, found->user_data);
DNSSD_LOCK;
- DNSSD_LOGD("Finished executing Resolve callback");
+ DNSSD_LOGI("Finished executing Resolve callback");
} else {
service_state = (flags & kDNSServiceFlagsAdd) ? DNSSD_SERVICE_STATE_AVAILABLE
: DNSSD_SERVICE_STATE_UNAVAILABLE;
DNSSD_UNLOCK;
found->callback.found_cb(service_state, local_handle->service_handler, found->user_data);
DNSSD_LOCK;
- DNSSD_LOGD("Finished executing Browse %s callback",
+ DNSSD_LOGI("Finished executing Browse %s callback",
(flags & kDNSServiceFlagsAdd) ? "Available" : "Unavailable");
}
dnssd_found_data_s *found = NULL;
dnssd_handle_s *local_handle = g_try_malloc0(FOUND_SIZE);
if (local_handle == NULL) {
- DNSSD_LOGD("g_try_malloc failed");
+ DNSSD_LOGI("g_try_malloc failed");
__DNSSD_LOG_FUNC_EXIT__;
return NULL;
}
found->user_data = browse->user_data;
}
- DNSSD_LOGD("Create found handle [%u]", local_handle->service_handler);
+ DNSSD_LOGI("Create found handle [%u]", local_handle->service_handler);
dnssd_handle_list = g_slist_prepend(dnssd_handle_list, local_handle);
- DNSSD_LOGD("g_slist length [%d]", g_slist_length(dnssd_handle_list));
+ DNSSD_LOGI("g_slist length [%d]", g_slist_length(dnssd_handle_list));
return local_handle;
}
int dns_protocol = kDNSServiceProtocol_IPv4 | kDNSServiceProtocol_IPv6;
if (dnssd_handle == NULL) {
- DNSSD_LOGD("Invalid browse handle");
+ DNSSD_LOGI("Invalid browse handle");
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_OUT_OF_MEMORY;
}
- DNSSD_LOGD("dnssd_handle[%p] optype[%d] if_index[%u] host[%s] name[%s] fullname[%s]",
+ DNSSD_LOGI("dnssd_handle[%p] optype[%d] if_index[%u] host[%s] name[%s] fullname[%s]",
dnssd_handle, dnssd_handle->op_type, if_index, host_name, service_name, fullname);
if (dnssd_handle->op_type == DNSSD_TYPE_BROWSE) {
__extract_domain_from_name(fullname, &domain);
__dnssd_handle_add_event_handler(&(local_handle->watch_id), local_handle);
- DNSSD_LOGD("Succeeded to GetAddrInfo");
+ DNSSD_LOGI("Succeeded to GetAddrInfo");
return DNSSD_ERROR_NONE;
}
static gboolean __remove_service_resolve_socket(gpointer user_data)
{
DNSSD_LOCK;
- DNSSD_LOGD("Remove DNSServiceResolve socket [%p]", user_data);
+ DNSSD_LOGI("Remove DNSServiceResolve socket [%p]", user_data);
resolve_reply_data *resolve_data = user_data;
if (resolve_data->watch_id > 0) {
GMainContext *context = g_main_context_get_thread_default();
__DNSSD_LOG_FUNC_ENTER__;
DNSSD_LOCK;
resolve_reply_data *resolve_data = user_data;
- DNSSD_LOGD("Received Resolve Reply[%p]", resolve_data);
+ DNSSD_LOGI("Received Resolve Reply[%p]", resolve_data);
if (flags & kDNSServiceFlagsMoreComing) {
- DNSSD_LOGD("More results are queued");
+ DNSSD_LOGI("More results are queued");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return;
}
if (__dnssd_check_resolve_reply_data_validity(resolve_data) == NULL) {
- DNSSD_LOGD("Invalid resolve_data[%p]", resolve_data);
+ DNSSD_LOGI("Invalid resolve_data[%p]", resolve_data);
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return;
data = g_try_malloc0(sizeof(resolve_reply_data));
if (data == NULL) {
- DNSSD_LOGD("g_try_malloc failed");
+ DNSSD_LOGI("g_try_malloc failed");
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_OUT_OF_MEMORY;
}
data->watch_id = 0;
data->service_name = g_strdup(service_name);
resolve_handle_list = g_slist_prepend(resolve_handle_list, data);
- DNSSD_LOGD("[%p] is added to resolve_handle_list", data);
- DNSSD_LOGD("resolve_data[%p] dnssd_handle[%p]", data, dnssd_handle);
+ DNSSD_LOGI("[%p] is added to resolve_handle_list", data);
+ DNSSD_LOGI("resolve_data[%p] dnssd_handle[%p]", data, dnssd_handle);
- DNSSD_LOGD("resolve_handle_list length [%d] [%p]", g_slist_length(resolve_handle_list), resolve_handle_list);
+ DNSSD_LOGI("resolve_handle_list length [%d] [%p]", g_slist_length(resolve_handle_list), resolve_handle_list);
ret = DNSServiceResolve(&(data->sd_ref), flags, if_index, service_name,
type, domain, __dnssd_resolve_reply_cb, data);
__dnssd_resolve_data_add_event_handler(&(data->watch_id), data);
- DNSSD_LOGD("Succeeded to Resolve DNS Service");
+ DNSSD_LOGI("Succeeded to Resolve DNS Service");
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_NONE;
for (list = dnssd_handle_list; list; list = list->next) {
local_handle = (dnssd_handle_s *)list->data;
if (!local_handle) {
- DNSSD_LOGD("An invalid handle in dnssd_handle_list");
+ DNSSD_LOGI("An invalid handle in dnssd_handle_list");
continue;
}
if ((found_data->browse_handler == browse_service) &&
(g_strcmp0(found_data->service_name,
service_name) == 0)) {
- DNSSD_LOGD("Service handler 0x%x",
+ DNSSD_LOGI("Service handler 0x%x",
local_handle->service_handler);
return local_handle;
}
}
- DNSSD_LOGD("Service handler not found");
+ DNSSD_LOGI("Service handler not found");
__DNSSD_LOG_FUNC_EXIT__;
return NULL;
}
int do_resolving = POINTER_TO_INT(user_data);
- DNSSD_LOGD("Received Browse Reply");
+ DNSSD_LOGI("Received Browse Reply");
if (error_code != kDNSServiceErr_NoError) {
DNSSD_LOGE("Failed to browse, error code %s",
continue;
if (dnssd_handle->sd_ref == sd_ref) {
- DNSSD_LOGD("Browse Callback set for [%p]", dnssd_handle);
+ DNSSD_LOGI("Browse Callback set for [%p]", dnssd_handle);
/* Update domain, interface and flags */
g_strlcpy(dnssd_handle->domain, domain,
sizeof(dnssd_handle->domain));
dnssd_handle->flags = flags;
- DNSSD_LOGD("Domain/Interface/Flags : %s/%x/%x",
+ DNSSD_LOGI("Domain/Interface/Flags : %s/%x/%x",
dnssd_handle->domain,
if_index,
dnssd_handle->flags);
data);
}
- DNSSD_LOGD("Finished executing Browse Callback");
+ DNSSD_LOGI("Finished executing Browse Callback");
}
}
DNSSD_UNLOCK;
} else {
if_index = kDNSServiceInterfaceIndexAny;
}
- DNSSD_LOGD("Interface index: %u", if_index);
+ DNSSD_LOGI("Interface index: %u", if_index);
handler = (uintptr_t)local_handle & 0xffffffff;
*browser = handler;
local_handle->watch_id = 0;
browse = GET_BROWSE_DATA_P(local_handle);
- DNSSD_LOGD("New browse handle created [%p]->[%u] type %s", local_handle,
+ DNSSD_LOGI("New browse handle created [%p]->[%u] type %s", local_handle,
*browser, local_handle->service_type);
ret = DNSServiceBrowse(&(local_handle->sd_ref), local_handle->flags,
dnssd_handle_list = g_slist_prepend(dnssd_handle_list, local_handle);
__dnssd_handle_add_event_handler(&(local_handle->watch_id), local_handle);
- DNSSD_LOGD("Succeeded to browse for dns service");
+ DNSSD_LOGI("Succeeded to browse for dns service");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_NONE;
local_handle = __dnssd_get_struct_from_handle(dnssd_service);
if (local_handle == NULL) {
- DNSSD_LOGD("Service Handler not found");
+ DNSSD_LOGI("Service Handler not found");
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_SERVICE_NOT_FOUND;
}
if (local_handle->op_type != DNSSD_TYPE_BROWSE) {
- DNSSD_LOGD("DNSSD service is not a local service");
+ DNSSD_LOGI("DNSSD service is not a local service");
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_SERVICE_NOT_FOUND;
}
dnssd_handle_list = g_slist_remove(dnssd_handle_list, browsing_handle);
g_free(browsing_handle->service_type);
g_free(browsing_handle);
- DNSSD_LOGD("g_slist length [%d]", g_slist_length(dnssd_handle_list));
+ DNSSD_LOGI("g_slist length [%d]", g_slist_length(dnssd_handle_list));
return;
}
}
if (local_handle->op_type != DNSSD_TYPE_FOUND_NOT_RESOLVED) {
- DNSSD_LOGD("Not matched type. [%d]", local_handle->op_type);
+ DNSSD_LOGI("Not matched type. [%d]", local_handle->op_type);
DNSSD_UNLOCK;
return DNSSD_ERROR_OPERATION_FAILED;
}
if (resolve_data->dnssd_handle != browsing_handle)
return;
- DNSSD_LOGD("Remove [%p] from resolve_handle_list", resolve_data);
+ DNSSD_LOGI("Remove [%p] from resolve_handle_list", resolve_data);
resolve_handle_list = g_slist_remove(resolve_handle_list,
resolve_data);
if (resolve_data->watch_id > 0)
}
*service_type = g_strdup(local_handle->service_type);
- DNSSD_LOGD("Service Type %s", *service_type);
+ DNSSD_LOGI("Service Type %s", *service_type);
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
*service_name = g_strdup(reg->service_name);
} else {
*service_name = NULL; //LCOV_EXCL_LINE
- DNSSD_LOGD("Invalid DNS SD service"); //LCOV_EXCL_LINE
+ DNSSD_LOGI("Invalid DNS SD service"); //LCOV_EXCL_LINE
DNSSD_UNLOCK; //LCOV_EXCL_LINE
__DNSSD_LOG_FUNC_EXIT__; //LCOV_EXCL_LINE
return DNSSD_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- DNSSD_LOGD("Service Name %s", *service_name);
+ DNSSD_LOGI("Service Name %s", *service_name);
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
}
if (local_handle->op_type != DNSSD_TYPE_FOUND) {
- DNSSD_LOGD("Invalid DNS SD Service");
+ DNSSD_LOGI("Invalid DNS SD Service");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_INVALID_PARAMETER;
*port = reg->port;
} else {
*port = 0; //LCOV_EXCL_LINE
- DNSSD_LOGD("Invalid DNS SD service"); //LCOV_EXCL_LINE
+ DNSSD_LOGI("Invalid DNS SD service"); //LCOV_EXCL_LINE
DNSSD_UNLOCK; //LCOV_EXCL_LINE
__DNSSD_LOG_FUNC_EXIT__; //LCOV_EXCL_LINE
return DNSSD_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- DNSSD_LOGD("Port %d", *port);
+ DNSSD_LOGI("Port %d", *port);
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
}
found->service_name = g_strdup(service_name);
- DNSSD_LOGD("New handle created [%p]->[%u] type %s", remote_handle,
+ DNSSD_LOGI("New handle created [%p]->[%u] type %s", remote_handle,
*dnssd_service, remote_handle->service_type);
dnssd_handle_list = g_slist_prepend(dnssd_handle_list, remote_handle);
remote_handle = __dnssd_get_struct_from_handle(dnssd_service);
if (remote_handle == NULL) {
- DNSSD_LOGD("Service Handler not found");
+ DNSSD_LOGI("Service Handler not found");
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_SERVICE_NOT_FOUND;
return DNSSD_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- DNSSD_LOGD("Destroy handle: [%p]->[%u]", remote_handle, dnssd_service);
+ DNSSD_LOGI("Destroy handle: [%p]->[%u]", remote_handle, dnssd_service);
dnssd_handle_list = g_slist_remove(dnssd_handle_list, remote_handle);
g_free(remote_handle->service_type);
g_free(remote_handle);
remote_handle = NULL;
- DNSSD_LOGD("g_slist length [%d]", g_slist_length(dnssd_handle_list));
+ DNSSD_LOGI("g_slist length [%d]", g_slist_length(dnssd_handle_list));
DNSSD_UNLOCK;
__DNSSD_LOG_FUNC_EXIT__;
return DNSSD_ERROR_NONE;
if (service->browser_id != browse_id)
return;
- SSDP_LOGD("Free found service");
+ SSDP_LOGI("Free found service");
g_hash_table_remove(g_found_ssdp_services, service->usn);
g_free(service->target);
for (list = services; list != NULL; list = list->next) {
service = list->data;
if (service && service->service_handler == handler) {
- SSDP_LOGD("target [%s]", service->target);
+ SSDP_LOGI("target [%s]", service->target);
break;
} else {
service = NULL;
for (list = services; list != NULL; list = list->next) {
service = list->data;
if (service && !g_strcmp0(service->usn, usn)) {
- SSDP_LOGD("USN [%s]", service->usn);
+ SSDP_LOGI("USN [%s]", service->usn);
break;
} else {
service = NULL;
for (list = services; list != NULL; list = list->next) {
service = list->data;
if (service && !g_strcmp0(service->url, url)) {
- SSDP_LOGD("URL [%s]", service->url);
+ SSDP_LOGI("URL [%s]", service->url);
break;
} else {
service = NULL;
}
for (l = urls; l != NULL; l = l->next) {
- SSDP_LOGD(" URL: %s", (char *)l->data);
+ SSDP_LOGI(" URL: %s", (char *)l->data);
url_len += strlen((char *)l->data);
}
found_service = g_hash_table_lookup(g_found_ssdp_services, usn);
if (found_service != NULL &&
g_strcmp0(found_service->usn, usn) == 0) {
- SSDP_LOGD("Duplicated service!");
+ SSDP_LOGI("Duplicated service!");
g_free(temp_url);
SSDP_UNLOCK;
__SSDP_LOG_FUNC_EXIT__;
return;
}
- SSDP_LOGD("resource available\nUSN: %s", usn);
+ SSDP_LOGI("resource available\nUSN: %s", usn);
found_service->usn = g_strdup(usn);
found_service->url = temp_url;
found_service->browser_id = browser->service_handler;
found_service->origin = SSDP_SERVICE_STATE_FOUND;
- SSDP_LOGD("added service [%u]", found_service->service_handler);
+ SSDP_LOGI("added service [%u]", found_service->service_handler);
g_hash_table_insert(g_found_ssdp_services,
found_service->usn, found_service);
- SSDP_LOGD("Hash tbl size [%d]", g_hash_table_size(g_found_ssdp_services));
+ SSDP_LOGI("Hash tbl size [%d]", g_hash_table_size(g_found_ssdp_services));
if (browser->found_cb) {
browser->found_cb(SSDP_SERVICE_STATE_AVAILABLE,
found_service = g_hash_table_lookup(g_found_ssdp_services, usn);
if (found_service == NULL) {
- SSDP_LOGD("No service matched!");
+ SSDP_LOGI("No service matched!");
SSDP_UNLOCK;
return;
}
- SSDP_LOGD("resource unavailable\n USN: %s\n", usn);
+ SSDP_LOGI("resource unavailable\n USN: %s\n", usn);
if (browser->found_cb) {
browser->found_cb(found_service->service_handler,
g_free(found_service->url);
g_free(found_service);
- SSDP_LOGD("Hash tbl size [%d]", g_hash_table_size(g_found_ssdp_services));
+ SSDP_LOGI("Hash tbl size [%d]", g_hash_table_size(g_found_ssdp_services));
SSDP_UNLOCK;
__SSDP_LOG_FUNC_EXIT__;
}
*ssdp_service = (uintptr_t)service & 0xFFFFFFFF;
- SSDP_LOGD("Create handler for service [%u]", *ssdp_service);
+ SSDP_LOGI("Create handler for service [%u]", *ssdp_service);
service->service_handler = *ssdp_service;
service->origin = SSDP_SERVICE_STATE_NOT_REGISTERED;
g_ssdp_local_services = g_list_append(g_ssdp_local_services, service);
return SSDP_ERROR_INVALID_PARAMETER;
}
- SSDP_LOGD("SSDP service ID [%u]", ssdp_service);
+ SSDP_LOGI("SSDP service ID [%u]", ssdp_service);
if (!g_is_gssdp_init) {
SSDP_LOGE("gssdp not initialized"); //LCOV_EXCL_LINE
SSDP_UNLOCK; //LCOV_EXCL_LINE
return SSDP_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- SSDP_LOGD("SSDP service ID [%u]", local_service);
- SSDP_LOGD("USN [%s]", usn);
+ SSDP_LOGI("SSDP service ID [%u]", local_service);
+ SSDP_LOGI("USN [%s]", usn);
if (!g_is_gssdp_init) {
SSDP_LOGE("gssdp not initialized"); //LCOV_EXCL_LINE
SSDP_UNLOCK; //LCOV_EXCL_LINE
return SSDP_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- SSDP_LOGD("SSDP service ID [%u]", local_service);
- SSDP_LOGD("Location [%s]", url);
+ SSDP_LOGI("SSDP service ID [%u]", local_service);
+ SSDP_LOGI("Location [%s]", url);
if (!g_is_gssdp_init) {
SSDP_LOGE("gssdp not initialized"); //LCOV_EXCL_LINE
SSDP_UNLOCK;
return SSDP_ERROR_INVALID_PARAMETER;
}
- SSDP_LOGD("SSDP service ID [%u]", ssdp_service);
+ SSDP_LOGI("SSDP service ID [%u]", ssdp_service);
if (!g_is_gssdp_init) {
SSDP_LOGE("gssdp not initialized");
SSDP_UNLOCK;
return SSDP_ERROR_INVALID_PARAMETER;
}
- SSDP_LOGD("SSDP service ID [%u]", ssdp_service);
+ SSDP_LOGI("SSDP service ID [%u]", ssdp_service);
if (!g_is_gssdp_init) {
SSDP_LOGE("gssdp not initialized"); //LCOV_EXCL_LINE
SSDP_UNLOCK;
return SSDP_ERROR_INVALID_PARAMETER;
}
- SSDP_LOGD("SSDP service ID [%u]", ssdp_service);
+ SSDP_LOGI("SSDP service ID [%u]", ssdp_service);
if (!g_is_gssdp_init) {
SSDP_LOGE("gssdp not initialized");
SSDP_UNLOCK; //LCOV_EXCL_LINE
return SSDP_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
- SSDP_LOGD("SSDP service ID [%u]", local_service);
+ SSDP_LOGI("SSDP service ID [%u]", local_service);
if (!g_is_gssdp_init) {
SSDP_LOGE("gssdp not initialized"); //LCOV_EXCL_LINE
service->cb_user_data = user_data;
gssdp_resource_group_set_available(service->resource_group, TRUE);
- SSDP_LOGD("Now service is available [%u]", local_service);
- SSDP_LOGD("Resource group id is [%d]\n", service->resource_id);
+ SSDP_LOGI("Now service is available [%u]", local_service);
+ SSDP_LOGI("Resource group id is [%d]\n", service->resource_id);
__ssdp_invoke_registered_cb(service);
SSDP_UNLOCK;
return SSDP_ERROR_INVALID_PARAMETER;
}
- SSDP_LOGD("SSDP service ID [%u]", local_service);
+ SSDP_LOGI("SSDP service ID [%u]", local_service);
if (!g_is_gssdp_init) {
SSDP_LOGE("gssdp not initialized");
}
gssdp_resource_group_set_available(service->resource_group, FALSE);
- SSDP_LOGD("Now service is unavailable [%u]", local_service);
+ SSDP_LOGI("Now service is unavailable [%u]", local_service);
if (service->resource_group != NULL && service->resource_id != 0) {
gssdp_resource_group_remove_resource(service->resource_group,
GLIST_ITER_START(g_ssdp_local_services, browser)
if (!strncmp(target, browser->target, strlen(target)) &&
browser->origin == SSDP_SERVICE_STATE_BROWSED) {
- SSDP_LOGD("Browsing request is already registered");
+ SSDP_LOGI("Browsing request is already registered");
} else {
browser = NULL;
}
return SSDP_ERROR_INVALID_PARAMETER;
}
- SSDP_LOGD("SSDP browser ID [%u]", ssdp_browser);
+ SSDP_LOGI("SSDP browser ID [%u]", ssdp_browser);
browser = __ssdp_find_local_service(g_ssdp_local_services, ssdp_browser);
if (browser == NULL) {
SSDP_LOGE("Service not found");