Skip to content

Commit

Permalink
variance: move the singletouch warning to debug
Browse files Browse the repository at this point in the history
In order to to break ts_uinput -d -v output in case this filter is
really enabled, we avoid this warning now. It's be visible when
debugging at least.
  • Loading branch information
merge committed Feb 22, 2019
1 parent b11a5f7 commit 834b98f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/variance.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ static int variance_read_mt(struct tslib_module_info *info,
}

if (var->cur_mt == NULL || max_slots > var->slots || nr > var->nr) {
printf("tslib: WARNING: no multitouch using VARIANCE filter\n");
#ifdef DEBUG
fprintf(stderr, "tslib: WARNING: no multitouch when using the variance filter\n");
#endif
if (var->cur_mt) {
for (i = 0; i < var->nr; i++) {
if (var->cur_mt[i])
Expand Down

0 comments on commit 834b98f

Please sign in to comment.