diff --git a/src/timer.c b/src/timer.c index 362d81db..4a7b43a8 100644 --- a/src/timer.c +++ b/src/timer.c @@ -63,7 +63,7 @@ libinput_timer_arm_timer_fd(struct libinput *libinput) r = timerfd_settime(libinput->timer.fd, TFD_TIMER_ABSTIME, &its, NULL); if (r) - log_error(libinput, "timerfd_settime error: %s\n", strerror(errno)); + log_error(libinput, "timer: timerfd_settime error: %s\n", strerror(errno)); } void @@ -76,11 +76,11 @@ libinput_timer_set_flags(struct libinput_timer *timer, if (expire < now) { if ((flags & TIMER_FLAG_ALLOW_NEGATIVE) == 0) log_bug_libinput(timer->libinput, - "timer offset negative (-%" PRIu64 ")\n", + "timer: offset negative (-%" PRIu64 ")\n", now - expire); } else if ((expire - now) > ms2us(5000)) { log_bug_libinput(timer->libinput, - "timer offset more than 5s, now %" + "timer: offset more than 5s, now %" PRIu64 " expire %" PRIu64 "\n", now, expire); } @@ -124,7 +124,7 @@ libinput_timer_handler(void *data) r = read(libinput->timer.fd, &discard, sizeof(discard)); if (r == -1 && errno != EAGAIN) log_bug_libinput(libinput, - "Error %d reading from timerfd (%s)", + "timer: error %d reading from timerfd (%s)", errno, strerror(errno));