From 364b8ffb8f22c0b0889c68cd4cdad2bac3f0de86 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 10 Feb 2022 10:26:16 +1000 Subject: [PATCH] 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 --- src/wcmCommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index ebb33720..cede157b 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,