[PATCH v4 10/16] Log messages in GetTouchEvents() in a signal safe manner

Chase Douglas chase.douglas at canonical.com
Mon May 14 14:14:31 PDT 2012


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 c960d44..9d482d1 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -1825,8 +1825,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);
+            ErrorSigSafe("[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.9.5



More information about the xorg-devel mailing list