diff options
author | Tommi Rantala <tommi.rantala@g-cluster.com> | 2015-03-04 13:39:17 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-03-05 08:47:18 +1000 |
commit | 84e74462416779bc9a0346cf82b957f444c6e0bc (patch) | |
tree | 90dd1bbb269c60b7a7129de13023522c7e3e3316 | |
parent | 58e4b0c2fed7ba04ee8ba4281d92ef23accb1b01 (diff) | |
download | external_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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |