lkml.org 
[lkml]   [2015]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/3] input: misc: keychord: log when keychord triggered
Date
From: JP Abgrall <jpa@google.com>

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

Signed-off-by: JP Abgrall <jpa@google.com>
Signed-off-by: Bálint Czobor <czoborbalint@gmail.com>
---
drivers/input/misc/keychord.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/input/misc/keychord.c b/drivers/input/misc/keychord.c
index 3ffab6d..a5ea27a 100644
--- a/drivers/input/misc/keychord.c
+++ b/drivers/input/misc/keychord.c
@@ -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,
--
1.7.9.5


\
 
 \ /
  Last update: 2015-10-27 10:01    [W:0.047 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site