Log messages in GetTouchEvents() in a signal safe manner

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Chase Douglas 2012-04-06 10:21:14 -07:00 committed by Keith Packard
parent 82d1c6b310
commit f752226e40

View File

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