diff --git a/src/timer.c b/src/timer.c index bf08e868..735135fa 100644 --- a/src/timer.c +++ b/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