diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-12-23 10:38:11 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-12-24 09:01:05 +1000 |
commit | 2429513915ee11e42e44068c1f8f66ff179cd534 (patch) | |
tree | fb249aa98189fa3724df67a3e83ffb914a66e836 /src/wcmConfig.c | |
parent | bdc40d1a769229082cf91f8fd344f230996a6440 (diff) | |
download | xf86-input-wacom-2429513915ee11e42e44068c1f8f66ff179cd534.tar.gz |
Auto-prepend device name/file to debug messages.
Add a new "name" field to the WacomDeviceRec. This field is at the same
offset as the wcmDevice Field of the WacomCommonRec, hence the access to
either is the same if casted.
Then use this field to auto-prepend either the device name or the device
file wherever a DBG macro is used. The output for DBG on priv is now
(II) Wacom Intuos4 6x9 (xf86WcmMappingFactor): X factor = 0.0258, Y factor = 0.0309
and for DBG on common
(II) /dev/input/event13 (wcmReadPacket): buffer has 112 bytes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/wcmConfig.c')
-rw-r--r-- | src/wcmConfig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wcmConfig.c b/src/wcmConfig.c index 2cb9de1..6f317b0 100644 --- a/src/wcmConfig.c +++ b/src/wcmConfig.c @@ -360,6 +360,7 @@ static LocalDevicePtr xf86WcmInit(InputDriverPtr drv, IDevPtr dev, int flags) goto SetupProc_fail; priv = (WacomDevicePtr) local->private; + priv->name = local->name; common = priv->common; common->wcmDevice = device; |