diff options
Diffstat (limited to 'provider/download-provider-client.c')
-rw-r--r-- | provider/download-provider-client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/provider/download-provider-client.c b/provider/download-provider-client.c index 53c5909..2e44223 100644 --- a/provider/download-provider-client.c +++ b/provider/download-provider-client.c @@ -483,7 +483,7 @@ static int __dp_request_read_string(int sock, dp_ipc_fmt *ipc_info, char **strin if (ipc_info->size > 0) { char *recv_str = (char *)calloc((ipc_info->size + (size_t)1), sizeof(char)); if (recv_str == NULL) { - TRACE_STRERROR("sock:%d check memory length:%d", sock, ipc_info->size); + TRACE_ERROR("sock:%d check memory length:%d", sock, ipc_info->size); errorcode = DP_ERROR_OUT_OF_MEMORY; } else { if (dp_ipc_read(sock, recv_str, ipc_info->size, __FUNCTION__) <= 0) { @@ -1307,7 +1307,7 @@ static int __dp_request_set_info(dp_client_slots_fmt *slot, dp_ipc_fmt *ipc_info if (raw_info != NULL && raw_info->size > 0) { unsigned char *recv_raws = (unsigned char *)calloc(raw_info->size, sizeof(unsigned char)); if (recv_raws == NULL) { - TRACE_STRERROR("sock:%d check memory length:%d", client->channel, raw_info->size); + TRACE_ERROR("sock:%d check memory length:%d", client->channel, raw_info->size); errorcode = DP_ERROR_OUT_OF_MEMORY; } else { if (dp_ipc_read(client->channel, recv_raws, raw_info->size, __FUNCTION__) <= 0) { @@ -1980,7 +1980,7 @@ void *dp_client_request_thread(void *arg) CLIENT_MUTEX_UNLOCK(&slot->mutex); continue; } else { - TRACE_STRERROR("interrupted by client-manager sock:%d", client_sock); + TRACE_ERROR("interrupted by client-manager sock:%d", client_sock); break; } } @@ -2002,7 +2002,7 @@ void *dp_client_request_thread(void *arg) // read ipc_fmt first. below func will deal followed packets dp_ipc_fmt *ipc_info = dp_ipc_get_fmt(client_sock); if (ipc_info == NULL) { - TRACE_STRERROR("sock:%d maybe closed", client_sock); + TRACE_ERROR("sock:%d maybe closed", client_sock); errorcode = DP_ERROR_IO_ERROR; } else { TRACE_DEBUG("sock:%d id:%d section:%s property:%s errorcode:%s size:%d", @@ -2065,7 +2065,7 @@ void *dp_client_request_thread(void *arg) // if no requests, clear slot after disconnect with client. CLIENT_MUTEX_LOCK(&slot->mutex); - TRACE_INFO("thread done slot %p thread:%0x sock:%d", slot, slot->thread, client_sock); + TRACE_INFO("thread done slot %p thread:%0x", slot, slot->thread); slot->thread = 0;// to prevent kill thread twice |