summaryrefslogtreecommitdiff
path: root/include/host_command.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2018-01-19 13:33:21 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-01-22 18:50:11 -0800
commitc06d7fea8f6b8235e9a7dcbb76e2a637189f9d2e (patch)
tree35a1b5a2f1d01a08bacf567d8b6506778858bcab /include/host_command.h
parentd9f4ce13f2a49a260db7bb6d42234439184e9e55 (diff)
downloadchrome-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 'include/host_command.h')
-rw-r--r--include/host_command.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/host_command.h b/include/host_command.h
index f83ffcc616..de99a6894e 100644
--- a/include/host_command.h
+++ b/include/host_command.h
@@ -337,4 +337,7 @@ void host_send_sysrq(uint8_t key);
uint32_t get_feature_flags0(void);
uint32_t get_feature_flags1(void);
+/* Used to define the end of host_command_suppressed */
+#define HOST_COMMAND_SUPPRESS_DELIMITER 0xFFFF
+
#endif /* __CROS_EC_HOST_COMMAND_H */