summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Rantala <tommi.rantala@g-cluster.com>2015-03-04 13:58:17 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2015-03-05 08:48:31 +1000
commitb8343ec1124da18bdabcc04809a8731b9e39295d (patch)
treef7d22173be6f4d84ff2fe16d16a0763f8dc7e7f9
parent774ce4cc3ff29ba7e85c0bace4c2beaa0a39ff02 (diff)
Fix names for EV_SYN events
We had the wrong pointer in the names[] array for EV_SYN, so for example codename() would print "EV_SYN" instead of "SYN_REPORT", or "EV_ABS" instead of "SYN_DROPPED", etc. Output from 1.31: Event: time 1425470463.069381, -------------- SYN_REPORT ------------ Output from 1.32: Event: time 1425470948.149794, -------------- EV_SYN ------------ Output after this patch: Event: time 1425471209.159696, -------------- SYN_REPORT ------------ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--evtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/evtest.c b/evtest.c
index 0077899..40bc82b 100644
--- a/evtest.c
+++ b/evtest.c
@@ -762,7 +762,7 @@ static const char * const forcestatus[FF_STATUS_MAX + 1] = {
static const char * const * const names[EV_MAX + 1] = {
[0 ... EV_MAX] = NULL,
- [EV_SYN] = events, [EV_KEY] = keys,
+ [EV_SYN] = syns, [EV_KEY] = keys,
[EV_REL] = relatives, [EV_ABS] = absolutes,
[EV_MSC] = misc, [EV_LED] = leds,
[EV_SND] = sounds, [EV_REP] = repeats,