From 1a42fe40d04d8bb18e7b9db6f6a40e552462f980 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: --- 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 47507181c..91006dde0 100644 --- a/hw/xwayland/xwayland-xtest.c +++ b/hw/xwayland/xwayland-xtest.c @@ -859,7 +859,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);