File: work-around-uapi-break-in-linux-input-ev.patch

package info (click to toggle)
linuxtv-dvb-apps 1.1.1%2Brev1500-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,980 kB
  • sloc: ansic: 49,043; makefile: 810; perl: 236; sh: 110; xml: 13
file content (25 lines) | stat: -rw-r--r-- 928 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Colin Watson <cjwatson@debian.org>
Date: Thu, 23 May 2024 16:38:37 +0100
X-Dgit-Generated: 1.1.1+rev1500-1.5 5d2fca4ffffcdce8ddcdf7e13a0681da7b381301
Subject: Work around UAPI break in Linux input events

See
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f.

Closes: #1066822

---

diff --git a/test/evtest.c b/test/evtest.c
index a61593e..73fb5af 100644
--- a/test/evtest.c
+++ b/test/evtest.c
@@ -241,7 +241,7 @@ int main (int argc, char **argv)
 
 		for (i = 0; i < rd / (int) sizeof(struct input_event); i++)
 			printf("Event: time %ld.%06ld, type %d (%s), code %d (%s), value %d\n",
-				ev[i].time.tv_sec, ev[i].time.tv_usec, ev[i].type,
+				ev[i].input_event_sec, ev[i].input_event_usec, ev[i].type,
 				events[ev[i].type] ? events[ev[i].type] : "?",
 				ev[i].code,
 				names[ev[i].type] ? (names[ev[i].type][ev[i].code] ? names[ev[i].type][ev[i].code] : "?") : "?",