From 43264132389e7d1c9afe80bdf9c855a50af5168d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 21 Jul 2025 11:14:43 +1000 Subject: [PATCH] libinput: obfuscate the keycodes in the "Queuing ..." debug log These messages are behind the 'internal-event-debugging' meson options but let's be extra safe. It's rarely if ever required to see the actual keycode anyway. Part-of: --- src/libinput.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libinput.c b/src/libinput.c index fff337a0..0602fff5 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -3210,8 +3210,11 @@ switch_notify_toggle(struct libinput_device *device, _unused_ static inline void libinput_print_queued_event(struct libinput_event *event) { + struct libinput_print_options opts = { + .show_keycodes = false, + }; struct libinput *libinput = libinput_event_get_context(event); - char *event_str = libinput_event_to_str(event, 0, NULL); + char *event_str = libinput_event_to_str(event, 0, &opts); log_debug(libinput, "Queuing %s\n", event_str); free(event_str); }