From bf53c4e04d4d9027f5c54a1171a4b57e6e8fabba Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 8 Nov 2017 14:19:51 +1000 Subject: [PATCH] timer: print the time delta unit when the timer offset causes an error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because we use ms in most other things that matter, having µs here can cause confusion. Signed-off-by: Peter Hutterer --- src/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer.c b/src/timer.c index 6dc2f8b2..bf08e868 100644 --- a/src/timer.c +++ b/src/timer.c @@ -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)) {