From faf86d3e374b568c7fc6ee64af7ee1f9a8013ada Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 24 Feb 2017 16:03:44 +1000 Subject: [PATCH] timer: prefix all messages with "timer:" Signed-off-by: Peter Hutterer Acked-by: Hans de Goede --- src/timer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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));