summaryrefslogtreecommitdiff
path: root/include/config.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/config.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/config.h')
-rw-r--r--include/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index fb3b9bd54a..06de830e0a 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1601,6 +1601,9 @@
/* Set SKU ID from AP */
#undef CONFIG_HOSTCMD_AP_SET_SKUID
+/* Suppress debug output for commands in host_command_suppressed */
+#undef CONFIG_SUPPRESS_HOST_COMMANDS
+
/*****************************************************************************/
/* Enable debugging and profiling statistics for hook functions */