summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2024-07-24 10:52:59 +0200
committerOlivier Fourdan <ofourdan@redhat.com>2024-08-06 10:00:59 +0200
commitfac3486a666009e67394741e1ad30c1b694ce71e (patch)
treebaad9cd72393a07098029a4e02d1b8cd56c4277c /hw
parentce7fb8139aa846a73b68607f97b8754ae13fb00f (diff)
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 <ofourdan@redhat.com> (cherry picked from commit 1a42fe40d04d8bb18e7b9db6f6a40e552462f980) Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1635>
Diffstat (limited to 'hw')
-rw-r--r--hw/xwayland/xwayland-xtest.c2
1 files changed, 1 insertions, 1 deletions
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);