mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 18:10:06 +01:00
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:
parent
73103a5c38
commit
4326413238
1 changed files with 4 additions and 1 deletions
|
|
@ -3210,8 +3210,11 @@ switch_notify_toggle(struct libinput_device *device,
|
||||||
_unused_ static inline void
|
_unused_ static inline void
|
||||||
libinput_print_queued_event(struct libinput_event *event)
|
libinput_print_queued_event(struct libinput_event *event)
|
||||||
{
|
{
|
||||||
|
struct libinput_print_options opts = {
|
||||||
|
.show_keycodes = false,
|
||||||
|
};
|
||||||
struct libinput *libinput = libinput_event_get_context(event);
|
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);
|
log_debug(libinput, "Queuing %s\n", event_str);
|
||||||
free(event_str);
|
free(event_str);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue