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/359112
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
This commit is contained in:
Nicolas Boichat
2016-07-08 14:11:56 +08:00
committed by chrome-bot
parent b24cfb13a9
commit bdfba87063
2 changed files with 4 additions and 1 deletions

View File

@@ -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] = {

View File

@@ -1052,6 +1052,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