From b59b92e37a6ecea1bc0deff5a5cd32e9f3a5cc68 Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Mon, 1 Jul 2024 11:10:52 +0900 Subject: [PATCH] Change DBG log level to INF Change-Id: Id279030faa4ab0becb6a64fc347f188dcb08b6e4 Signed-off-by: Junkyeong Kim --- src/cbhm.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) 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); -- 2.7.4