mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 19:50:25 +01:00
touchpad: use log_error instead of fprintf
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ebed4f0de3
commit
67d1943ca4
1 changed files with 3 additions and 1 deletions
|
|
@ -26,8 +26,10 @@
|
|||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/timerfd.h>
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue