[PATCH libinput 6/8] timer: print the error messages in ms, not µs
Peter Hutterer
peter.hutterer at who-t.net
Thu Nov 9 05:08:49 UTC 2017
A lot easier to understand and we're not that precise anyway
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/timer.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
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
--
2.13.6
More information about the wayland-devel
mailing list