[PATCH v7 09/15] Log messages in GetTouchEvents() in a signal safe manner

Peter Hutterer peter.hutterer at who-t.net
Wed Jun 20 22:56:40 PDT 2012


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

Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dix/getevents.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dix/getevents.c b/dix/getevents.c
index baa26c4..3fa3a1e 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -1839,8 +1839,8 @@ GetTouchEvents(InternalEvent *events, DeviceIntPtr dev, uint32_t ddx_touchid,
         touchpoint.ti =
             TouchFindByDDXID(dev, ddx_touchid, (type == XI_TouchBegin));
         if (!touchpoint.ti) {
-            ErrorF("[dix] %s: unable to %s touch point %x\n", dev->name,
-                   type == XI_TouchBegin ? "begin" : "find", ddx_touchid);
+            ErrorFSigSafe("[dix] %s: unable to %s touch point %u\n", dev->name,
+                          type == XI_TouchBegin ? "begin" : "find", ddx_touchid);
             return 0;
         }
         client_id = touchpoint.ti->client_id;
-- 
1.7.10.2



More information about the xorg-devel mailing list