mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-30 13:00:10 +01:00
timer: print the error messages in ms, not µs
A lot easier to understand and we're not that precise anyway Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
5acd5147a1
commit
56d74b5c0f
1 changed files with 5 additions and 6 deletions
11
src/timer.c
11
src/timer.c
|
|
@ -88,15 +88,14 @@ 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 "µs)\n",
|
||||
"timer %s: offset negative (-%dms)\n",
|
||||
timer->timer_name ? timer->timer_name : "",
|
||||
now - expire);
|
||||
us2ms(now - expire));
|
||||
} else if ((expire - now) > ms2us(5000)) {
|
||||
log_bug_libinput(timer->libinput,
|
||||
"timer %s: offset more than 5s, now %"
|
||||
PRIu64 " expire %" PRIu64 "\n",
|
||||
timer->timer_name ? timer->timer_name : "",
|
||||
now, expire);
|
||||
"timer %s: offset more than 5s, now %d expire %d\n",
|
||||
timer->timer_name ? timer->timer_name : "",
|
||||
us2ms(now), us2ms(expire));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue