From 71db0fd117a8585ee083c8b565bb9afdfa159a6a Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Thu, 17 Apr 2014 07:53:22 -0700 Subject: [PATCH] libinput-seat: redirect libinput log to weston log https://bugs.freedesktop.org/show_bug.cgi?id=77578 Signed-off-by: U. Artie Eoff --- src/libinput-seat.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libinput-seat.c b/src/libinput-seat.c index b6adc76b..99612c46 100644 --- a/src/libinput-seat.c +++ b/src/libinput-seat.c @@ -251,6 +251,13 @@ udev_input_enable(struct udev_input *input) return 0; } +static void +libinput_log_func(enum libinput_log_priority priority, void *user_data, + const char *format, va_list args) +{ + weston_vlog(format, args); +} + int udev_input_init(struct udev_input *input, struct weston_compositor *c, struct udev *udev, const char *seat_id) @@ -259,6 +266,8 @@ udev_input_init(struct udev_input *input, struct weston_compositor *c, struct ud input->compositor = c; + libinput_log_set_handler(&libinput_log_func, NULL); + input->libinput = libinput_udev_create_for_seat(&libinput_interface, input, udev, seat_id); if (!input->libinput) {