e_comp_wl: disable wayland log handler. 89/65189/1 accepted/tizen/common/20160408.184855 accepted/tizen/ivi/20160408.004445 accepted/tizen/mobile/20160408.004521 accepted/tizen/tv/20160408.004423 accepted/tizen/wearable/20160408.004457 submit/tizen/20160408.000800
authorGwanglim Lee <gl77.lee@samsung.com>
Thu, 7 Apr 2016 23:51:20 +0000 (08:51 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 7 Apr 2016 23:51:20 +0000 (08:51 +0900)
It was passing va_list to eina_log, and eina_log treated it as normal argument.
And finally, the E could be crashed in _e_log_cb function.

Change-Id: I349637a1255a6c526718a51ba2857fc68ea84651

src/bin/e_comp_wl.c

index 859124840e7719aaee2c95e0fda0ddf4ed742325..1b1d2b67484065cf15f26baffd5699fa1e0fc385 100644 (file)
@@ -85,12 +85,6 @@ _e_comp_wl_focus_check(void)
      e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
 }
 
-static void
-_e_comp_wl_log_cb_print(const char *format, va_list args)
-{
-   EINA_LOG_DOM_INFO(e_log_dom, format, args);
-}
-
 static Eina_Bool
 _e_comp_wl_cb_read(void *data EINA_UNUSED, Ecore_Fd_Handler *hdlr EINA_UNUSED)
 {
@@ -4035,9 +4029,6 @@ _e_comp_wl_compositor_create(void)
    /* set compositor wayland data */
    e_comp_wl = e_comp->wl_comp_data = cdata;
 
-   /* set wayland log handler */
-   wl_log_set_handler_server(_e_comp_wl_log_cb_print);
-
    /* try to create a wayland display */
    if (!(cdata->wl.disp = wl_display_create()))
      {