aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2013-03-05 14:25:36 -0800
committerArve Hjønnevåg <arve@android.com>2013-04-29 14:43:22 -0700
commit7695c579d2b0ccbd5835e94fc28b75cfb54a7144 (patch)
treea8595781ddd56809b11ca92ff02c5faff716b02d
parentbc8082b2b45467ebdcb386ce1ca9cacfad63a6ca (diff)
input: misc: keychord: log when keychord triggered
log keychord id at info level just before waking up processes. Signed-off-by: JP Abgrall <jpa@google.com>
-rw-r--r--drivers/input/misc/keychord.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/input/misc/keychord.c b/drivers/input/misc/keychord.c
index 3ffab6da411..a5ea27ad0e1 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,