From 67d1943ca4a8792b30e6f3deceb6840702f4e3bf Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 25 Mar 2014 11:43:52 +1000 Subject: [PATCH] touchpad: use log_error instead of fprintf Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-tap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c index bc7acbd0..35982f73 100644 --- a/src/evdev-mt-touchpad-tap.c +++ b/src/evdev-mt-touchpad-tap.c @@ -26,8 +26,10 @@ #endif #include +#include #include #include +#include #include #include #include @@ -559,7 +561,7 @@ tp_tap_timeout_handler(void *data) /* This will only happen if the application made the fd * non-blocking, but this function should only be called * upon the timeout, so lets continue anyway. */ - fprintf(stderr, "timerfd read error: %m\n"); + log_error("timerfd read error: %s\n", strerror(errno)); clock_gettime(CLOCK_MONOTONIC, &ts); now = ts.tv_sec * 1000 + ts.tv_nsec / 1000000;