From 9642a4b5af705bd30db5b0e3d672406ec13c5492 Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Tue, 3 Jan 2017 10:37:48 +0900 Subject: [PATCH] Enhance readability of log messages Change-Id: Ic2cc0f6154e81af9f06543c4fc37b8438d7c31fe --- src/e_mod_input_panel.c | 14 ++++++++------ src/e_mod_main.c | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/e_mod_input_panel.c b/src/e_mod_input_panel.c index d4e45ef..f29d36e 100644 --- a/src/e_mod_input_panel.c +++ b/src/e_mod_input_panel.c @@ -126,7 +126,7 @@ _e_input_panel_surface_cb_ready_set(struct wl_client *client EINA_UNUSED, struct if (g_input_panel->wait_update) { - WTI_LOG("IPS::SHOW::READY"); + WTI_LOG("IPS::SHOW::READY\n"); e_input_panel_visibility_change(EINA_TRUE); e_input_panel_wait_update_set(EINA_FALSE); } @@ -224,7 +224,7 @@ _ips_show(E_Client *ec) if (ec->visible) return; - WTI_LOG("IPS::SHOW"); + WTI_LOG("IPS::SHOW\n"); _e_input_panel_position_set(ec, ec->client.w, ec->client.h); @@ -250,7 +250,7 @@ _ips_cb_buffer_change(void *data, int type, void *event) if (!ips->wait_update) goto clean; - WTI_LOG("IPS::BUFFER::CHANGED::DEFER_SHOW"); + WTI_LOG("IPS::BUFFER::CHANGED::DEFER_SHOW\n"); if (_e_input_panel_is_effect_running(ips->ec)) ips->need_show = EINA_TRUE; @@ -293,7 +293,7 @@ _e_input_panel_surface_visible_update(E_Input_Panel_Surface *ips) if (ec->visible) return; - WTI_LOG("IPS::DEFER_SHOW::ADD"); + WTI_LOG("IPS::DEFER_SHOW::ADD\n"); ips->wait_update = EINA_TRUE; if (!ips->eh.buf_change) { @@ -305,7 +305,7 @@ _e_input_panel_surface_visible_update(E_Input_Panel_Surface *ips) } else { - WTI_LOG("IPS::DEFER_SHOW::HIDE"); + WTI_LOG("IPS::DEFER_SHOW::HIDE\n"); ips->wait_update = EINA_FALSE; ec->visible = EINA_FALSE; /* We have to reset the flag of pending_show to prevent showing after @@ -631,6 +631,8 @@ e_input_panel_visibility_change(Eina_Bool visible) if (!g_input_panel) return; + WTI_LOG("e_input_panel_visibility_change : %d\n", visible); + EINA_LIST_FOREACH(g_input_panel->surfaces, l, ips) { if (!ips->ec) continue; @@ -782,7 +784,7 @@ _ips_client_frame_flush(E_Input_Panel_Surface *ips) if (e_object_is_del(E_OBJECT(ips->ec))) return; - WTI_LOG("IPS::FRAME::FLUSH ec %p", ips->ec); + WTI_LOG("IPS::FRAME::FLUSH ec %p\n", ips->ec); e_pixmap_image_clear(ips->ec->pixmap, EINA_TRUE); } diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 6607d46..d777a0a 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -1218,7 +1218,7 @@ _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource * { /* DO NOT show input panel surface until we get message "show complete" from input method, * in order to give a change to update UI */ - WTI_LOG("IM::SHOW::WAIT_FOR_READY"); + WTI_LOG("IM::SHOW::WAIT_FOR_READY\n"); wl_input_method_send_show_input_panel(input_method->resource, input_method->context->resource); -- 2.7.4