diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2018-01-19 13:33:21 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-22 18:50:11 -0800 |
commit | c06d7fea8f6b8235e9a7dcbb76e2a637189f9d2e (patch) | |
tree | 35a1b5a2f1d01a08bacf567d8b6506778858bcab /board/fizz/board.h | |
parent | d9f4ce13f2a49a260db7bb6d42234439184e9e55 (diff) | |
download | chrome-ec-c06d7fea8f6b8235e9a7dcbb76e2a637189f9d2e.tar.gz |
host_command: Suppress individual host command debug log
Host command handler prints every single host command except when
commands are repeated back-to-back. This patch allows each board
decide which commands should be ignored. When debug printf is
suppressed, a global counter is incremented. Developers know there
were commands processed but not reported to the console.
BUG=chromium:803955
BRANCH=none
TEST=Observe 0x97 and 0x98 were not printed. Global suppress
counter is incremented.
Change-Id: I05e8cde9039f602e8fc06c20e89b328e797bd733
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/876952
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/fizz/board.h')
-rw-r--r-- | board/fizz/board.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/fizz/board.h b/board/fizz/board.h index 67b7d20aad..e3c49e5f5f 100644 --- a/board/fizz/board.h +++ b/board/fizz/board.h @@ -29,6 +29,7 @@ #define CONFIG_DPTF #define CONFIG_FLASH_SIZE 0x80000 #define CONFIG_FPU +#define CONFIG_SUPPRESS_HOST_COMMANDS #define CONFIG_I2C #define CONFIG_I2C_MASTER #undef CONFIG_LID_SWITCH |