ecore-drm: Remove libinput log print callback
authorChris Michael <cp.michael@samsung.com>
Wed, 10 Dec 2014 14:44:38 +0000 (09:44 -0500)
committerChris Michael <cp.michael@samsung.com>
Wed, 10 Dec 2014 17:01:58 +0000 (12:01 -0500)
Summary: This was causing crashes in libinput when trying to print out
via eina_log. Disable/Remove it. Let libinput print it's own logs.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm/ecore_drm_inputs.c

index f479465a2b966b4c09a9d57843d6ff40b22fa2c2..31176a3f71e9c6908bb9bc696777c4a3ad582571 100644 (file)
@@ -5,25 +5,6 @@
 #include "ecore_drm_private.h"
 
 /* local functions */
-static void 
-_cb_libinput_log(struct libinput *libinput EINA_UNUSED, enum libinput_log_priority priority, const char *format, va_list args)
-{
-   switch (priority)
-     {
-      case LIBINPUT_LOG_PRIORITY_DEBUG:
-        DBG(format, args);
-        break;
-      /* case LIBINPUT_LOG_PRIORITY_INFO: */
-      /*   INF(format, args); */
-      /*   break; */
-      case LIBINPUT_LOG_PRIORITY_ERROR:
-        ERR(format, args);
-        break;
-      default:
-        break;
-     }
-}
-
 static int 
 _cb_open_restricted(const char *path, int flags, void *data)
 {
@@ -258,9 +239,6 @@ ecore_drm_inputs_create(Ecore_Drm_Device *dev)
         break;
      }
 
-   /* set callback for libinput logging */
-   libinput_log_set_handler(input->libinput, &_cb_libinput_log);
-
    /* set libinput log priority */
    libinput_log_set_priority(input->libinput, priority);