diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-09-20 12:33:18 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-09-22 14:27:02 +0200 |
commit | 4c4e4128f3763eb3d4836a23b9c46b6122e81d62 (patch) | |
tree | cdc77d6228b3b68a573f622acc2f218583a2aca6 /src/libsystemd-terminal | |
parent | 20725d929ff566e53d7a857d6f0ee94aa8383469 (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/libsystemd-terminal')
-rw-r--r-- | src/libsystemd-terminal/evcat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd-terminal/evcat.c b/src/libsystemd-terminal/evcat.c index 8c27fb2c54..b3f08e60bf 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); |