evtest: fix timestamps in output

Broken patch caused seconds to be printed twice instead of
seconds and microseconds.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Johannes Obermüller
2021-08-02 18:03:13 +02:00
committed by Khem Raj
parent ba016d73b5
commit f0b8ee3702
@@ -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)