mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 05:18:32 +02:00
touchpad: reduce state debugging output by only logging changed states
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f1873fae62
commit
43b910b1df
2 changed files with 12 additions and 10 deletions
|
|
@ -642,10 +642,11 @@ tp_gesture_post_gesture(struct tp_dispatch *tp, uint64_t time)
|
||||||
tp->gesture.state =
|
tp->gesture.state =
|
||||||
tp_gesture_handle_state_pinch(tp, time);
|
tp_gesture_handle_state_pinch(tp, time);
|
||||||
|
|
||||||
evdev_log_debug(tp->device,
|
if (oldstate != tp->gesture.state)
|
||||||
"gesture state: %s → %s\n",
|
evdev_log_debug(tp->device,
|
||||||
gesture_state_to_str(oldstate),
|
"gesture state: %s → %s\n",
|
||||||
gesture_state_to_str(tp->gesture.state));
|
gesture_state_to_str(oldstate),
|
||||||
|
gesture_state_to_str(tp->gesture.state));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -912,12 +912,13 @@ tp_tap_handle_event(struct tp_dispatch *tp,
|
||||||
if (tp->tap.state == TAP_STATE_IDLE || tp->tap.state == TAP_STATE_DEAD)
|
if (tp->tap.state == TAP_STATE_IDLE || tp->tap.state == TAP_STATE_DEAD)
|
||||||
tp_tap_clear_timer(tp);
|
tp_tap_clear_timer(tp);
|
||||||
|
|
||||||
evdev_log_debug(tp->device,
|
if (current != tp->tap.state)
|
||||||
"tap: touch %d state %s → %s → %s\n",
|
evdev_log_debug(tp->device,
|
||||||
t ? (int)t->index : -1,
|
"tap: touch %d state %s → %s → %s\n",
|
||||||
tap_state_to_str(current),
|
t ? (int)t->index : -1,
|
||||||
tap_event_to_str(event),
|
tap_state_to_str(current),
|
||||||
tap_state_to_str(tp->tap.state));
|
tap_event_to_str(event),
|
||||||
|
tap_state_to_str(tp->tap.state));
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue