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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1276>
This commit is contained in:
Peter Hutterer 2025-07-21 11:14:43 +10:00
parent 73103a5c38
commit 4326413238

View file

@ -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);
}