[PATCH libinput 3/8] timer: print the time delta unit when the timer offset causes an error

Peter Hutterer peter.hutterer at who-t.net
Thu Nov 9 05:08:46 UTC 2017


Because we use ms in most other things that matter, having µs here can cause
confusion.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 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)) {
-- 
2.13.6



More information about the wayland-devel mailing list