We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fd2140 commit cffbe52Copy full SHA for cffbe52
src/tslib.c
@@ -88,6 +88,13 @@ struct ts_priv {
88
#endif
89
};
90
91
+static int errfn(const char *fmt, va_list ap)
92
+{
93
+ xf86ErrorF(fmt, ap);
94
+
95
+ return vfprintf(stderr, fmt, ap);
96
+}
97
98
static void ReadInputLegacy(InputInfoPtr local)
99
{
100
struct ts_priv *priv = (struct ts_priv *) (local->private);
@@ -416,6 +423,8 @@ static int xf86TslibInit(__attribute__ ((unused)) InputDriverPtr drv,
416
423
417
424
pInfo->fd = ts_fd(priv->ts);
418
425
426
+ ts_error_fn = errfn;
427
419
428
/* process generic options */
420
429
xf86CollectInputOptions(pInfo, NULL);
421
430
xf86ProcessCommonOptions(pInfo, pInfo->options);
0 commit comments