timer: prefix all messages with "timer:"

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Peter Hutterer 2017-02-24 16:03:44 +10:00
parent 6181adbdcd
commit faf86d3e37

View file

@ -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));