Skip to content

Commit

Permalink
evtest: fix typo to include usec in input event time
Browse files Browse the repository at this point in the history
Currently evtest prints input event in sec.sec time format.
Modify the patch to support sec.usec format for input events.

Fixes: 64f07ba

Signed-off-by: Richa Bharti <Richa.Bharti@siemens.com>
  • Loading branch information
ricbha authored and Richa Bharti committed Jul 20, 2023
1 parent b5282ec commit 0178b9f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -35,7 +35,7 @@ index 548c203..93063cd 100644
code = ev[i].code;

- printf("Event: time %ld.%06ld, ", ev[i].time.tv_sec, ev[i].time.tv_usec);
+ printf("Event: time %ld.%06ld, ", ev[i].input_event_sec, ev[i].input_event_sec);
+ printf("Event: time %ld.%06ld, ", ev[i].input_event_sec, ev[i].input_event_usec);

if (type == EV_SYN) {
if (code == SYN_MT_REPORT)

0 comments on commit 0178b9f

Please sign in to comment.