projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20725d9
)
terminal: print RESYNC state in evcat
author
David Herrmann
<dh.herrmann@gmail.com>
Sat, 20 Sep 2014 10:33:18 +0000
(12:33 +0200)
committer
David 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
patch
|
blob
|
history
diff --git
a/src/libsystemd-terminal/evcat.c
b/src/libsystemd-terminal/evcat.c
index
8c27fb2
..
b3f08e6
100644
(file)
--- 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);