Use log_error instead of fprintf in old touchpad code
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 27 Mar 2014 05:05:36 +0000 (15:05 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 10 Apr 2014 01:11:56 +0000 (11:11 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
src/evdev-touchpad.c

index 65c5ea05e2708b64e0c5b46984d6fd4e13f16533..1a4844195cbb2dccaf6ee9d9d29aea692f782919 100644 (file)
@@ -454,7 +454,7 @@ fsm_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: %m\n");
 
        if (touchpad->fsm.events_count == 0) {
                clock_gettime(CLOCK_MONOTONIC, &ts);