chiark / gitweb /
terminal: print RESYNC state in evcat
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 20 Sep 2014 10:33:18 +0000 (12:33 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 22 Sep 2014 12:27:02 +0000 (14:27 +0200)
Whenever a key-event is part of a RESYNC, we should print that verbosely
as those events are out-of-order.

src/libsystemd-terminal/evcat.c

index 8c27fb2c546ac02797020d00e5cdedc71325c5d4..b3f08e60bf8614819bc467637a035aea008145a8 100644 (file)
@@ -203,6 +203,9 @@ static void kdata_print(idev_data *data) {
                         k->value == 1 ? "DOWN" :
                         "REPEAT");
 
+        /* Resync state */
+        printf(" | %-6s", data->resync ? "RESYNC" : "");
+
         /* Keycode that triggered the event */
         printf(" | %5u", (unsigned)k->keycode);