mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-23 06:00:29 +01:00
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:
parent
6181adbdcd
commit
faf86d3e37
1 changed files with 4 additions and 4 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue