summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-09-20 12:33:18 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-09-22 14:27:02 +0200
commit4c4e4128f3763eb3d4836a23b9c46b6122e81d62 (patch)
treecdc77d6228b3b68a573f622acc2f218583a2aca6 /src
parent20725d929ff566e53d7a857d6f0ee94aa8383469 (diff)
terminal: print RESYNC state in evcat
Whenever a key-event is part of a RESYNC, we should print that verbosely as those events are out-of-order.
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-terminal/evcat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/evcat.c b/src/libsystemd-terminal/evcat.c
index 8c27fb2c5..b3f08e60b 100644
--- a/src/libsystemd-terminal/evcat.c
+++ b/src/libsystemd-terminal/evcat.c
@@ -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);