mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 15:00:38 +01:00
timer: print the time delta unit when the timer offset causes an error
Because we use ms in most other things that matter, having µs here can cause confusion. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
96dd43cd30
commit
bf53c4e04d
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ libinput_timer_set_flags(struct libinput_timer *timer,
|
|||
if (expire < now) {
|
||||
if ((flags & TIMER_FLAG_ALLOW_NEGATIVE) == 0)
|
||||
log_bug_libinput(timer->libinput,
|
||||
"timer %s: offset negative (-%" PRIu64 ")\n",
|
||||
"timer %s: offset negative (-%" PRIu64 "µs)\n",
|
||||
timer->timer_name ? timer->timer_name : "",
|
||||
now - expire);
|
||||
} else if ((expire - now) > ms2us(5000)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue