[PATCH 1/5] evdev: Include the device capabilities in the debugging

Kristian Høgsberg hoegsberg at gmail.com
Thu Dec 6 12:54:15 PST 2012


On Mon, Dec 03, 2012 at 07:44:13PM +0000, Rob Bradford wrote:
> From: Rob Bradford <rob at linux.intel.com>

Those look good, thanks Rob.  I commited all and squashed the build fix.

Kristian

> ---
>  src/evdev.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/src/evdev.c b/src/evdev.c
> index 1c65b7b..fa2c740 100644
> --- a/src/evdev.c
> +++ b/src/evdev.c
> @@ -473,8 +473,11 @@ evdev_configure_device(struct evdev_device *device)
>  	if ((device->caps &
>  	     (EVDEV_MOTION_ABS | EVDEV_MOTION_REL | EVDEV_BUTTON))) {
>  		weston_seat_init_pointer(device->seat);
> -		weston_log("input device %s, %s is a pointer\n",
> -			   device->devname, device->devnode);
> +		weston_log("input device %s, %s is a pointer caps =%s%s%s\n",
> +			   device->devname, device->devnode,
> +			   device->caps & EVDEV_MOTION_ABS ? " absolute-motion" : "",
> +			   device->caps & EVDEV_MOTION_REL ? " relative-motion": "",
> +			   device->caps & EVDEV_BUTTON ? " button" : "");
>  	}
>  	if ((device->caps & EVDEV_KEYBOARD)) {
>  		weston_seat_init_keyboard(device->seat, NULL);
> -- 
> 1.7.11.7
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list