aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommi Rantala <tommi.rantala@g-cluster.com>2015-03-04 13:39:17 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2015-03-05 08:47:18 +1000
commit84e74462416779bc9a0346cf82b957f444c6e0bc (patch)
tree90dd1bbb269c60b7a7129de13023522c7e3e3316
parent58e4b0c2fed7ba04ee8ba4281d92ef23accb1b01 (diff)
downloadexternal_evtest-84e74462416779bc9a0346cf82b957f444c6e0bc.tar.gz
external_evtest-84e74462416779bc9a0346cf82b957f444c6e0bc.tar.bz2
external_evtest-84e74462416779bc9a0346cf82b957f444c6e0bc.zip
Highlight SYN_DROPPED
If we fail to read the input events fast enough, recent kernels give the SYN_DROPPED event. Highlight the event to make it obvious that we missed some events. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--evtest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/evtest.c b/evtest.c
index bdd7115..1f9b908 100644
--- a/evtest.c
+++ b/evtest.c
@@ -1062,6 +1062,8 @@ static int print_events(int fd)
if (type == EV_SYN) {
if (code == SYN_MT_REPORT)
printf("++++++++++++++ %s ++++++++++++\n", codename(type, code));
+ else if (code == SYN_DROPPED)
+ printf(">>>>>>>>>>>>>> %s <<<<<<<<<<<<\n", codename(type, code));
else
printf("-------------- %s ------------\n", codename(type, code));
} else {