[PATCH libinput 3/4] timer: prefix all messages with "timer:"

Peter Hutterer peter.hutterer at who-t.net
Fri Feb 24 06:15:24 UTC 2017


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/timer.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/timer.c b/src/timer.c
index 362d81d..4a7b43a 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));
 
-- 
2.9.3



More information about the wayland-devel mailing list