From: Junkyeong Kim Date: Mon, 1 Jul 2024 02:10:52 +0000 (+0900) Subject: Change DBG log level to INF X-Git-Tag: accepted/tizen/unified/20240702.162329~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F313668%2F1;p=platform%2Fcore%2Fuifw%2Fcbhm.git Change DBG log level to INF Change-Id: Id279030faa4ab0becb6a64fc347f188dcb08b6e4 Signed-off-by: Junkyeong Kim --- diff --git a/src/cbhm.c b/src/cbhm.c index b2b22c6..46a5c8a 100644 --- a/src/cbhm.c +++ b/src/cbhm.c @@ -117,7 +117,7 @@ _cbhm_add_mime_type(Cbhm_Data_Offer *cbhm_data_offer, const char *type) mime->mimetype[len] = '\0'; if (LIST_IS_EMPTY(&cbhm_data_offer->offer_mimetype_list)) { - DBG("[CBHM]_cbhm_add_mime_type: %s\n", type); + INF("[CBHM]_cbhm_add_mime_type: %s\n", type); LIST_ADDTAIL(&mime->item_link, &cbhm_data_offer->offer_mimetype_list); cbhm_data_offer->type_count++; } else { @@ -131,7 +131,7 @@ _cbhm_add_mime_type(Cbhm_Data_Offer *cbhm_data_offer, const char *type) } if (type_match == false) { - DBG("[CBHM]_cbhm_add_mime_type: %s\n", type); + INF("[CBHM]_cbhm_add_mime_type: %s\n", type); LIST_ADDTAIL(&mime->item_link, &cbhm_data_offer->offer_mimetype_list); cbhm_data_offer->type_count++; } @@ -154,7 +154,7 @@ _cbhm_remove_mime_type(Cbhm_Data_Offer *cbhm_data_offer, const char *type) free(mime->mimetype); LIST_DEL(&mime->item_link); free(mime); - DBG("[CBHM]_cbhm_remove_mime_type: remove mime type : %s\n", type); + INF("[CBHM]_cbhm_remove_mime_type: remove mime type : %s\n", type); cbhm_data_offer->type_count--; break; } @@ -243,7 +243,7 @@ _data_source_send(void *data, struct wl_data_source *source, const char *mime_ty } cur_buf = buf; - DBG("[CBHM][SENDING] ====>> fd(%d), len(%d), data(%s)\n", fd, size_ret, buf); + INF("[CBHM][SENDING] ====>> fd(%d), len(%d), data(%s)\n", fd, size_ret, buf); while (len_written < size_ret) { ret = write(fd, cur_buf, len_remained); if (ret == -1) { @@ -272,7 +272,7 @@ _data_source_send(void *data, struct wl_data_source *source, const char *mime_ty cur_buf += ret; len_written += ret; len_remained -= ret; - DBG("[CBHM][SENT] ====>> remain(%d), sent(%d)\n", len_remained, ret); + INF("[CBHM][SENT] ====>> remain(%d), sent(%d)\n", len_remained, ret); } cur_buf = NULL; free(buf); @@ -289,7 +289,7 @@ _data_source_cancelled(void *data, struct wl_data_source *source) if (info->data_source == source) info->data_source = NULL; - DBG("[CBHM]_data_source_cancelled: destroy(%p)\n", source); + INF("[CBHM]_data_source_cancelled: destroy(%p)\n", source); wl_data_source_destroy(source); } @@ -307,7 +307,7 @@ _data_source_dnd_finished(void *data, struct wl_data_source *source) if (info->data_source == source) info->data_source = NULL; - DBG("[CBHM]_data_source_dnd_finished: destroy(%p)\n", source); + INF("[CBHM]_data_source_dnd_finished: destroy(%p)\n", source); wl_data_source_destroy(source); } @@ -376,7 +376,7 @@ _cbhm_offer_receive(Cbhm_Glib_Info *info) cbhm_data_offer = info->cbhm_data_offer; if (info->data_received_count == cbhm_data_offer->type_count) { - DBG("[CBHM]_cbhm_offer_receive: already received all type data : %d", cbhm_data_offer->type_count); + INF("[CBHM]_cbhm_offer_receive: already received all type data : %d", cbhm_data_offer->type_count); return; } @@ -388,7 +388,7 @@ _cbhm_offer_receive(Cbhm_Glib_Info *info) info->temp_mime_type = strdup(mime->mimetype); break; } - DBG("[CBHM]_cbhm_offer_receive: selected mime type : %s", info->temp_mime_type); + INF("[CBHM]_cbhm_offer_receive: selected mime type : %s", info->temp_mime_type); if (pipe2(pipe, O_CLOEXEC) == -1) { ERR("[CBHM]_cbhm_offer_receive: pipe2 fail\n"); @@ -408,7 +408,7 @@ _cbhm_offer_receive(Cbhm_Glib_Info *info) info->datafd.revents = 0; g_source_add_poll(&info->gsource, &info->datafd); - DBG("[CBHM]_cbhm_offer_receive: set datafd(%d, %d)\n", pipe[0], pipe[1]); + INF("[CBHM]_cbhm_offer_receive: set datafd(%d, %d)\n", pipe[0], pipe[1]); } static void @@ -575,12 +575,12 @@ _data_device_cb_offer(void *data, struct wl_data_device *data_device, struct wl_ cbhm_data_offer = info->cbhm_data_offer; if (cbhm_data_offer != NULL && cbhm_data_offer->data_offer == offer) { - DBG("[CBHM]_data_device_cb_offer : same offer called do nothing(%p)\n", offer); + INF("[CBHM]_data_device_cb_offer : same offer called do nothing(%p)\n", offer); return; } if (cbhm_data_offer != NULL && cbhm_data_offer->data_offer != offer) { - DBG("[CBHM]_data_device_cb_offer : destroy previous offer %p\n", cbhm_data_offer->data_offer); + INF("[CBHM]_data_device_cb_offer : destroy previous offer %p\n", cbhm_data_offer->data_offer); _cbhm_free_mime_type_list(cbhm_data_offer); wl_data_offer_destroy(cbhm_data_offer->data_offer); free(cbhm_data_offer); @@ -592,7 +592,7 @@ _data_device_cb_offer(void *data, struct wl_data_device *data_device, struct wl_ ERR("[CBHM]_data_device_cb_offer : calloc fail\n"); return; } - DBG("[CBHM]_data_device_cb_offer : %p\n", offer); + INF("[CBHM]_data_device_cb_offer : %p\n", offer); _cbhm_free_received_data(info); LIST_INITHEAD(&info->received_data_list);