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-08-01 16:42:12 +0000 |
commit | c126e8760167eea2ee1e10fd8e63a680b5b8e8c8 (patch) | |
tree | 803bc226a32b89d31f4d7e794b821165c64db471 | |
parent | 1abe07d82e5c0461158b2dd5d733397bcf89c692 (diff) | |
download | chrome-ec-c126e8760167eea2ee1e10fd8e63a680b5b8e8c8.tar.gz |
UPSTREAM: 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=cyan
BUG=chrome-os-partner:55001
TEST=make buildall -j
TEST=Flash cyan EC, see that output is fairly quiet.
Change-Id: I70d91c291d934b4f032e5c57f3c333e2c10b93bc
Reviewed-on: https://chromium-review.googlesource.com/359412
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Tested-by: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Gwendal Grignou <gwendal@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 387f0d03a2..61d8b85b66 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; static const char * const hcdebug_mode_names[HCDEBUG_MODES] = { "off", "normal", "every", "params"}; diff --git a/include/config.h b/include/config.h index 4fbe6fd403..fa845b1dc2 100644 --- a/include/config.h +++ b/include/config.h @@ -889,6 +889,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 |