Fix pen and touch arbitration

Arbitration did not work as expected since common is meant for tools
on the same logical port, not for tools of the same physical device
or of the same product id. Plus, not all devices support touch.

Signed-off-by: Ping Cheng <pingc@wacom.com>
Acked-by: Jason Gerecke <killertofu@gmail.com>
Arbitration applies to puck/Wacom mouse as well

We do not allow finger competes with CURSOR.

Signed-off-by: Ping Cheng <pingc@wacom.com>
Reviewed-by: Jason Gerecke <killertofu@gmail.com>
Support pen/touch arbitration across product ids

Devices with different product ids for pen and touch, such as
Cintiq 24HD and DTH 2242, were added recently. Applying arbitration
only for tools with same product id is not enough.

However, we want to make sure tools with same product id are lined
properly first. That's why the same routine is repeated instead of
combined.

Signed-off-by: Ping Cheng <pingc@wacom.com>
Reviewed-by: Jason Gerecke <killertofu@gmail.com>
Fix warning: format expects argument of type

../src/wcmXCommand.c: In function 'wcmCheckActionProperty':
../src/wcmXCommand.c:387:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat]

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
wacom 0.19.99.1

Signed-off-by: Jason Gerecke <killertofu@gmail.com>