Commit 5e25bdfb authored by Peter Hutterer's avatar Peter Hutterer

timer: make the timer offset error a bit more user-friendly

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent da9eace8
......@@ -93,7 +93,7 @@ libinput_timer_set_flags(struct libinput_timer *timer,
if (expire < now) {
if ((flags & TIMER_FLAG_ALLOW_NEGATIVE) == 0)
log_bug_client(timer->libinput,
"timer %s: offset negative (-%dms)\n",
"timer %s: scheduled expiry is in the past (-%dms), your system is too slow\n",
timer->timer_name,
us2ms(now - expire));
} else if ((expire - now) > ms2us(5000)) {
......
......@@ -660,7 +660,7 @@ static void timer_offset_warning(struct libinput *libinput,
int *warning_triggered = (int*)libinput_get_user_data(libinput);
if (priority == LIBINPUT_LOG_PRIORITY_ERROR &&
strstr(format, "offset negative"))
strstr(format, "scheduled expiry is in the past"))
(*warning_triggered)++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment