|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 4c4e4128f3763eb3d4836a23b9c46b6122e81d62 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: David Herrmann <dh.herrmann@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Sat, 20 Sep 2014 12:33:18 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] terminal: print RESYNC state in evcat
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Whenever a key-event is part of a RESYNC, we should print that verbosely
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
as those events are out-of-order.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/libsystemd-terminal/evcat.c | 3 +++
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 3 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/libsystemd-terminal/evcat.c b/src/libsystemd-terminal/evcat.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 8c27fb2c54..b3f08e60bf 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/libsystemd-terminal/evcat.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/libsystemd-terminal/evcat.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -203,6 +203,9 @@ static void kdata_print(idev_data *data) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
k->value == 1 ? "DOWN" :
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
"REPEAT");
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ /* Resync state */
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ printf(" | %-6s", data->resync ? "RESYNC" : "");
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
/* Keycode that triggered the event */
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
printf(" | %5u", (unsigned)k->keycode);
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|