diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2024-01-16 17:02:51 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2024-01-22 01:21:29 +0000 |
commit | c5f808ac2e74fbcfbdbf04e8ee7d79cba155b1a0 (patch) | |
tree | 19dcf73275d6fadb59223565fb7cf01156973b7e | |
parent | cf1c07e06672b0e086db68a8d2d5af6a3af8ccbc (diff) |
test: debug print the events we're draining
-rw-r--r-- | test/litest.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/litest.c b/test/litest.c index 615a16f7..0ff9d1e3 100644 --- a/test/litest.c +++ b/test/litest.c @@ -96,6 +96,7 @@ static struct list created_files_list; /* list of all files to remove at the end static void litest_init_udev_rules(struct list *created_files_list); static void litest_remove_udev_rules(struct list *created_files_list); +static void litest_print_event(struct libinput_event *event); enum quirks_setup_mode { QUIRKS_SETUP_USE_SRCDIR, @@ -3060,6 +3061,10 @@ litest_drain_events(struct libinput *li) libinput_dispatch(li); while ((event = libinput_get_event(li))) { + if (verbose) { + fprintf(stderr, "litest: draining event: "); + litest_print_event(event); + } libinput_event_destroy(event); libinput_dispatch(li); } |