diff options
author | JP Abgrall <jpa@google.com> | 2013-03-05 14:25:36 -0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2016-02-16 13:50:57 -0800 |
commit | fda0dfcfde43a7b4e2e07cc9d4e41f4f2ac09b6b (patch) | |
tree | f0222f7f71815bcd5998d3104497f6fcd4ce9e5a /drivers/input/misc | |
parent | 26a59a0fd85cb7af8c521579037e85b04e6dbbdb (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>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/keychord.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/input/misc/keychord.c b/drivers/input/misc/keychord.c index 3ffab6da411b..a5ea27ad0e16 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, |