diff options
author | Nicolas Boichat <drinkcat@google.com> | 2016-07-08 14:11:56 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2016-07-11 09:30:50 +0000 |
commit | 21f9b72828a11b14b1919beff52612fb33b99a99 (patch) | |
tree | 72731b29dde99fd1a3bcfbbc59727eac97087a70 | |
parent | bebbdb0c7c2c31b8b47c25fa6b933aa0f07162c4 (diff) | |
download | chrome-ec-21f9b72828a11b14b1919beff52612fb33b99a99.tar.gz |
Add CONFIG_HOSTCMD_DEBUG_MODE to set default hcdebug mode
elm EC console output is very spammy, as EC_CMD_MOTION_SENSE_CMD
is called every 100ms, so we want to set "hcdebug" to "off" as
the default (which still includes errors, but no "normal"
commands).
BRANCH=none
BUG=chrome-os-partner:55001
TEST=make buildall -j
TEST=Flash elm EC, see that output is fairly quiet.
Change-Id: I70d91c291d934b4f032e5c57f3c333e2c10b93bc
Reviewed-on: https://chromium-review.googlesource.com/359472
Reviewed-by: Rong Chang <rongchang@chromium.org>
Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
-rw-r--r-- | common/host_command.c | 2 | ||||
-rw-r--r-- | include/config.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/common/host_command.c b/common/host_command.c index 80838efc52..a0a7378c8e 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -47,7 +47,7 @@ static enum { /* Number of host command debug modes */ HCDEBUG_MODES -} hcdebug = HCDEBUG_NORMAL; +} hcdebug = CONFIG_HOSTCMD_DEBUG_MODE; #ifdef CONFIG_CMD_HCDEBUG static const char * const hcdebug_mode_names[HCDEBUG_MODES] = { diff --git a/include/config.h b/include/config.h index d991d43cc7..03e399e623 100644 --- a/include/config.h +++ b/include/config.h @@ -1053,6 +1053,9 @@ */ #undef CONFIG_HOST_COMMAND_STATUS +/* Default hcdebug mode, e.g. HCDEBUG_OFF or HCDEBUG_NORMAL */ +#define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_NORMAL + /* If we have host command task, assume we also are using host events. */ #ifdef HAS_TASK_HOSTCMD #define CONFIG_HOSTCMD_EVENTS |