diff options
author | Raul E Rangel <rrangel@chromium.org> | 2022-04-20 11:55:30 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-25 23:20:43 +0000 |
commit | 87fab3656b9799df15695432ad8412796ece82ed (patch) | |
tree | ecef72025390afd7886fcc10d593ffc0b6ec8ec2 /common/keyboard_8042.c | |
parent | 7e9f952709d430f08842171e404b162184c11138 (diff) | |
download | chrome-ec-87fab3656b9799df15695432ad8412796ece82ed.tar.gz |
common/keyboard_8042: Add print when updating button
keyboard_update_button gets called when the power button is pressed.
It isn't obvious where the scan codes were coming from. Add a print
statement to make it easier to debug.
BUG=b:218874489, b:160595155
BRANCH=guybrush, zork
TEST=Boot guybrush with power button and see message
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Icd45a526e254976582172a10e1c16d0a3e14fce7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3602227
Reviewed-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'common/keyboard_8042.c')
-rw-r--r-- | common/keyboard_8042.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c index 5e89dd3959..da09edc91c 100644 --- a/common/keyboard_8042.c +++ b/common/keyboard_8042.c @@ -1032,6 +1032,8 @@ test_mockable void keyboard_update_button(enum keyboard_button_type button, } if (keystroke_enabled) { + CPRINTS5("KB UPDATE BTN"); + i8042_send_to_host(len, scan_code, CHAN_KBD); task_wake(TASK_ID_KEYPROTO); } |