diff options
author | Martin Roth <martinroth@google.com> | 2018-02-02 15:59:22 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-03-02 15:19:16 +0000 |
commit | 45cc2ba882f72503d56d94d3e7ae40b27fc9b18b (patch) | |
tree | 4e7ee2fae3616818d0c601f60f2c39b6a5124f3d /src/ec | |
parent | 4100f2b97c315ec92f37f3392b733ee0b6f52887 (diff) |
ec/google/chromeec: Add note before error message
When clearing events from the EC, an error is returned when we try
to clear an event that doesn't exist. This is normal, but can
be distracting when trying to track down an error, so add a message
saying that the error is expected.
BUG=None
Test=Build Grunt with SMM debug enabled. See message before
"EC returned error result code 1".
Change-Id: Ib2e684e357e821c795de4b59658432c91a8d63fc
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/24914
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/ec')
-rw-r--r-- | src/ec/google/chromeec/smihandler.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/smihandler.c b/src/ec/google/chromeec/smihandler.c index 54aa4bfd94..cab71928da 100644 --- a/src/ec/google/chromeec/smihandler.c +++ b/src/ec/google/chromeec/smihandler.c @@ -53,6 +53,7 @@ static void clear_pending_events(void) while (google_chromeec_get_event() != 0) ; + printk(BIOS_DEBUG,"Clearing pending EC events. Error code 1 is expected.\n"); while (google_chromeec_get_mkbp_event(&mkbp_event) == 0) ; } |