From b5776487ab30d4c437682fc675f03602c472d07d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 11 Jul 2020 11:13:45 +0200 Subject: [PATCH] input: include seat name in debug log output --- input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/input.c b/input.c index bc35ad56..308a7efd 100644 --- a/input.c +++ b/input.c @@ -301,8 +301,8 @@ keyboard_enter(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_window *win = wl_surface_get_user_data(surface); struct terminal *term = win->term; - LOG_DBG("keyboard_enter: keyboard=%p, serial=%u, surface=%p", - wl_keyboard, serial, surface); + LOG_DBG("%s: keyboard_enter: keyboard=%p, serial=%u, surface=%p", + seat->name, wl_keyboard, serial, surface); term_kbd_focus_in(term); seat->kbd_focus = term; @@ -895,8 +895,8 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer, struct terminal *old_moused = seat->mouse_focus; LOG_DBG( - "pointer-leave: pointer=%p, serial=%u, surface = %p, old-moused = %p", - wl_pointer, serial, surface, old_moused); + "%s: pointer-leave: pointer=%p, serial=%u, surface = %p, old-moused = %p", + seat->name, wl_pointer, serial, surface, old_moused); if (seat->pointer.xcursor_callback != NULL) { /* A cursor frame callback may never be called if the pointer leaves our surface */