input: change CHECKEVENT macro to verify_internal_event function
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 4 May 2011 22:48:19 +0000 (08:48 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 5 May 2011 23:58:08 +0000 (09:58 +1000)
commit56901998020b6f443cbaa5eb303100d979e81b22
tree2dea93e2d0c1d30b1d898092e5a51be17da1683d
parentbf2059b07a97e5e579c13c2c9d49707093427dc2
input: change CHECKEVENT macro to verify_internal_event function

The macro is sufficient if called during a development cycle, but not
sufficient information when triggered by a user (e.g.
https://bugzilla.redhat.com/show_bug.cgi?id=688693).

Expand what this does to print the event content and a backtrace, so at
least we know where we're coming from. Only the first 32 bytes are printed
since if something goes wrong, the event we have is almost certainly an
xEvent or xError, both restricted to 32 bytes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Xi/exevents.c
dix/events.c
dix/inpututils.c
include/eventstr.h
include/inpututils.h
mi/mieq.c