diff --git a/common/host_command.c b/common/host_command.c index 91bd2ded6e..2a4c48a803 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 7595c796a1..bf4cf994b1 100644 --- a/include/config.h +++ b/include/config.h @@ -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