This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:
Subject: keytable: fix print of event code number Author: Mauro Carvalho Chehab <[email protected]> Date: Sat Mar 25 12:43:18 2017 -0300 On test mode, it should be printing the event code, and not its number: 1490456649.422048: event type EV_REL(0x02): REL_X (0x0000) value=1 1490456649.422048: event type EV_REL(0x02): REL_Y (0x0001) value=-1 1490456651.915996: event type EV_REL(0x02): REL_WHEEL (0x0008) value=1 1490456651.996069: event type EV_REL(0x02): REL_WHEEL (0x0008) value=1 1490456652.744083: event type EV_REL(0x02): REL_WHEEL (0x0008) value=-1 1490456652.826059: event type EV_REL(0x02): REL_WHEEL (0x0008) value=-1 Before this patch, it were printing 0x0002 for all the above event codes, by mistake. Signed-off-by: Mauro Carvalho Chehab <[email protected]> utils/keytable/keytable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=8fc88615b49843acb82cd8316d0bc4ab8474cba2 diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c index bb5d0bd14622..54fdebc49d81 100644 --- a/utils/keytable/keytable.c +++ b/utils/keytable/keytable.c @@ -1294,13 +1294,13 @@ static void test_event(int fd) case EV_REL: printf(_(": %s (0x%04x) value=%d\n"), get_event_name(rel_events, ev[i].code), - ev[i].type, + ev[i].code, ev[i].value); break; case EV_ABS: printf(_(": %s (0x%04x) value=%d\n"), get_event_name(abs_events, ev[i].code), - ev[i].type, + ev[i].code, ev[i].value); break; case EV_MSC: _______________________________________________ linuxtv-commits mailing list [email protected] https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
