From beb8ffff8c1ecd362cedd84bdd3073fb57a570e2 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 24 Jul 2024 10:52:59 +0200 Subject: [PATCH] xwayland/ei: Log the type name of unhandled events Currently, we would log only the event type, use the libei API to also log the name in plain text, so we can quickly identify the events we're missing out. Signed-off-by: Olivier Fourdan Part-of: (cherry picked from commit 1a42fe40d04d8bb18e7b9db6f6a40e552462f980) --- hw/xwayland/xwayland-xtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-xtest.c b/hw/xwayland/xwayland-xtest.c index af7d02c07..40ab866a0 100644 --- a/hw/xwayland/xwayland-xtest.c +++ b/hw/xwayland/xwayland-xtest.c @@ -857,7 +857,7 @@ xwl_handle_ei_event(int fd, int ready, void *data) /* Don't care */ break; default: - error_ei("Unhandled event %d\n", type); + error_ei("Unhandled event %s (%d)\n", ei_event_type_to_string(type), type); break; } ei_event_unref(e);