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:
Peter Hutterer 2017-11-09 10:39:13 +10:00
parent 5acd5147a1
commit 56d74b5c0f

View file

@ -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