From: Jihoon Kim Date: Fri, 6 Mar 2020 09:54:36 +0000 (+0900) Subject: Add more logs X-Git-Tag: accepted/tizen/5.5/unified/20200309.124451~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F226926%2F3;p=platform%2Fcore%2Fuifw%2Fcapi-ui-sticker.git Add more logs Change-Id: I691840b100107265cf9f9003b4e9d0d1c7942a3d Signed-off-by: Jihoon Kim --- diff --git a/receiver/src/ft.cpp b/receiver/src/ft.cpp index d1c960f..764d552 100644 --- a/receiver/src/ft.cpp +++ b/receiver/src/ft.cpp @@ -142,7 +142,7 @@ static void notify_sync_progress(unsigned int file_progress) double total_progress = (((double)rec_file_cnt / (double)total_file_count) + (1.0/(double)total_file_count*file_progress/100))*100; - LOGI("recv : %d, total : %d, file_progress : %d, %u%%", rec_file_cnt, total_file_count, file_progress, (unsigned int)total_progress); + LOGI("(%2d / %2d), file progress : %3u%%, total progress : %3u%%", rec_file_cnt, total_file_count, file_progress, (unsigned int)total_progress); char progress_str[32]; snprintf(progress_str, sizeof(progress_str), "%u", (unsigned int)total_progress); send_message("sync_progress", progress_str); @@ -231,7 +231,6 @@ static void _on_sending_file_in_progress(sap_file_transaction_h file_transaction unsigned short int percentage_progress, void *user_data) { - LOGI("# progress %d", percentage_progress); notify_sync_progress(percentage_progress); } diff --git a/receiver/src/main.cpp b/receiver/src/main.cpp index 6191a28..6f728fe 100644 --- a/receiver/src/main.cpp +++ b/receiver/src/main.cpp @@ -57,6 +57,11 @@ static void app_control(app_control_h app_control, void *data) if (mode && category && type) request_sticker_data(mode, category, type); } + else + { + LOGW("Unknown command : %s", request); + } + } cleanup: if (NULL != request)