[RFC XI 2.1 - xinput 1/3] Print XI2 device event child window in hex too

Chase Douglas chase.douglas at canonical.com
Fri Nov 12 14:35:15 PST 2010


From: Chase Douglas <chase.douglas at ubuntu.com>

This fixes an obvious error in the current print formatting.

Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
 src/test_xi2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/test_xi2.c b/src/test_xi2.c
index c59ba26..fea36a8 100644
--- a/src/test_xi2.c
+++ b/src/test_xi2.c
@@ -72,7 +72,7 @@ static void print_deviceevent(XIDeviceEvent* event)
         if (XIMaskIsSet(event->valuators.mask, i))
             printf("        %i: %.2f\n", i, *val++);
 
-    printf("    windows: root 0x%lx event 0x%lx child 0x%ld\n",
+    printf("    windows: root 0x%lx event 0x%lx child 0x%lx\n",
             event->root, event->event, event->child);
 }
 
-- 
1.7.1



More information about the xorg-devel mailing list