gestures: change the debug log messages for state debugging
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 20 Dec 2024 01:16:36 +0000 (11:16 +1000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 20 Dec 2024 09:47:46 +0000 (09:47 +0000)
Prefix the result of handle_event with "event" and the handle_state with
"state"

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1106>

src/evdev-mt-touchpad-gestures.c

index 4817b1ed4f8f39ed96b11ca8a79aaa60beda3ba6..107d59d73fb83644edfa8e062792aa3cfed854fc 100644 (file)
@@ -960,7 +960,7 @@ tp_gesture_handle_event(struct tp_dispatch *tp,
 
        if (oldstate != tp->gesture.state) {
                evdev_log_debug(tp->device,
-                               "gesture: [%dfg] state %s → %s → %s\n",
+                               "gesture: [%dfg] event %s → %s → %s\n",
                                tp->gesture.finger_count,
                                gesture_state_to_str(oldstate),
                                gesture_event_to_str(event),
@@ -1528,7 +1528,7 @@ tp_gesture_handle_state(struct tp_dispatch *tp, uint64_t time,
                        remaining -= n;
                }
                evdev_log_debug(tp->device,
-                               "gesture: [%dfg] transitions %s%s → %s\n",
+                               "gesture: [%dfg] state %s%s → %s\n",
                                tp->gesture.finger_count,
                                gesture_state_to_str(oldstate),
                                buf,