Skip to contentSkip to conversation

input: misc: keychord: log when keychord triggered

PATCH In review Bálint Czobor 1 participant 1 message Oct 27, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 input: misc: keychord: log when keychord triggered

From: JP Abgrall <[email protected]>

log keychord id at info level just before waking up processes.

---
 drivers/input/misc/keychord.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/input/misc/keychord.c +5 -1
index 3ffab6d..a5ea27a 100644
@@ -126,8 +126,12 @@ static void keychord_event(struct input_handle *handle, unsigned int type,
 done:
 	spin_unlock_irqrestore(&kdev->lock, flags);
 
-	if (got_chord)
+	if (got_chord) {
+		pr_info("keychord: got keychord id %d. Any tasks: %d\n",
+			keychord->id,
+			!list_empty_careful(&kdev->waitq.task_list));
 		wake_up_interruptible(&kdev->waitq);
+	}
 }
 
 static int keychord_connect(struct input_handler *handler,
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html