summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2022-02-10 10:26:16 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2022-02-11 07:39:22 +1000
commit364b8ffb8f22c0b0889c68cd4cdad2bac3f0de86 (patch)
tree6d67378bb842e0b7f5736b70d0f95ee8731934de
parente8015b67000b555347412e955c6e9ed1556225c4 (diff)
downloadxf86-input-wacom-364b8ffb8f22c0b0889c68cd4cdad2bac3f0de86.tar.gz
Print the device id, device type and serial number as hex
This is how we tend to use it most of the time (e.g. in libwacom definitions) Note that we're using 0x%x here instead of the easier %#x because the X server's old sigsafe printf implementation doesn't support the alternative format. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/wcmCommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index ebb3372..cede157 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -1130,7 +1130,7 @@ void wcmEvent(WacomCommonPtr common, unsigned int channel,
ds = *pState;
DBG(10, common,
- "c=%d i=%d t=%d s=%u x=%d y=%d b=%d "
+ "c=%d i=0x%x t=0x%x s=0x%x x=%d y=%d b=%d "
"p=%d rz=%d tx=%d ty=%d aw=%d aw2=%d rw=%d "
"t=%d px=%d st=%d cs=%d \n",
channel,