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:
Peter Hutterer 2017-11-08 14:19:51 +10:00
parent 96dd43cd30
commit bf53c4e04d

View file

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