Skip to content

Commit

Permalink
Print the device id, device type and serial number as hex
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
whot committed Feb 10, 2022
1 parent e8015b6 commit 364b8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wcmCommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 364b8ff

Please sign in to comment.