summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2019-05-29 11:20:39 -0600
committerCommit Bot <commit-bot@chromium.org>2019-06-03 19:11:35 +0000
commit93a3f30e55e2ac5304a7cb66f24a76d51127e242 (patch)
tree42bf2a9910d5a89d98cd954f1ecc1016cfb20b63
parenta5c17b44c506979a56cf7ebcaf03ef86f406a3c4 (diff)
downloadchrome-ec-93a3f30e55e2ac5304a7cb66f24a76d51127e242.tar.gz
cr50: Remove user presence check message.
Coreboot on Wilco now uses phyiscal presense checks from the Cr50 to confirm user actions. When booting to the recovery screen, the Cr50 console is flooded with "Presence: 0" messages. Demote the message to DBG images only and only if the user presense was detected. BUG=b:133266946 BRANCH=cr50 TEST=Build DBG and non DBG CR50 images on Wilco. Confirm the message flood is gone at the recovery screen. Change-Id: Ie6b08a386e9e479e61a6764dad8d4a3c9aa57f05 Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1638483 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--board/cr50/u2f.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/cr50/u2f.c b/board/cr50/u2f.c
index a9989aa3fb..bf0bbb8791 100644
--- a/board/cr50/u2f.c
+++ b/board/cr50/u2f.c
@@ -43,7 +43,10 @@ enum touch_state pop_check_presence(int consume)
int recent = ((last_press.val > 0) &&
((get_time().val - last_press.val) < PRESENCE_TIMEOUT));
- CPRINTS("Presence:%d", recent);
+#ifdef CR50_DEV
+ if (recent)
+ CPRINTS("User presence: consumed %d", consume);
+#endif
if (consume)
last_press.val = 0;